Skip to content

Commit b2694ab

Browse files
authored
gh-92536: Mark PyUnicode_READY() argument as unused (#93011)
1 parent a458be3 commit b2694ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/cpython/unicodeobject.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ static inline unsigned int PyUnicode_CHECK_INTERNED(PyObject *op) {
193193
#endif
194194

195195
/* For backward compatibility */
196-
static inline unsigned int PyUnicode_IS_READY(PyObject *op) {
196+
static inline unsigned int PyUnicode_IS_READY(PyObject* Py_UNUSED(op)) {
197197
return 1;
198198
}
199199
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
@@ -413,7 +413,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_New(
413413
);
414414

415415
/* For backward compatibility */
416-
static inline int PyUnicode_READY(PyObject *op)
416+
static inline int PyUnicode_READY(PyObject* Py_UNUSED(op))
417417
{
418418
return 0;
419419
}

0 commit comments

Comments
 (0)