From 2e58f1b1bc855705b8f0af4ac95694749453f1c9 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 20 May 2022 13:22:08 +0200 Subject: [PATCH] fix unicode-related inline function warnings --- Include/cpython/unicodeobject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index 758aaff2d77d67..3adfcb7a8c1f0e 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -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; }