]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92536: Mark PyUnicode_READY() argument as unused (#93011)
authorWenzel Jakob <wenzel.jakob@epfl.ch>
Mon, 23 May 2022 14:15:09 +0000 (16:15 +0200)
committerGitHub <noreply@github.com>
Mon, 23 May 2022 14:15:09 +0000 (16:15 +0200)
Include/cpython/unicodeobject.h

index 758aaff2d77d67e6fbfa9971297fe7fab538da8d..3adfcb7a8c1f0ee53f951d708d77e21d71a50dc1 100644 (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;
 }