gh-92536: Mark PyUnicode_READY() argument as unused (#93011)

This commit is contained in:
Wenzel Jakob 2022-05-23 16:15:09 +02:00 committed by GitHub
parent a458be3263
commit b2694ab469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ static inline unsigned int PyUnicode_CHECK_INTERNED(PyObject *op) {
#endif
/* For backward compatibility */
static inline unsigned int PyUnicode_IS_READY(PyObject *op) {
static inline unsigned int PyUnicode_IS_READY(PyObject* Py_UNUSED(op)) {
return 1;
}
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
@ -413,7 +413,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_New(
);
/* For backward compatibility */
static inline int PyUnicode_READY(PyObject *op)
static inline int PyUnicode_READY(PyObject* Py_UNUSED(op))
{
return 0;
}