[Python-checkins] gh-92536: Mark PyUnicode_READY() argument as unused (#93011)
vstinner
webhook-mailer at python.org
Mon May 23 10:15:18 EDT 2022
https://github.com/python/cpython/commit/b2694ab46997746eae7e913738623b39f6334473
commit: b2694ab46997746eae7e913738623b39f6334473
branch: main
author: Wenzel Jakob <wenzel.jakob at epfl.ch>
committer: vstinner <vstinner at python.org>
date: 2022-05-23T16:15:09+02:00
summary:
gh-92536: Mark PyUnicode_READY() argument as unused (#93011)
files:
M Include/cpython/unicodeobject.h
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h
index 758aaff2d77d6..3adfcb7a8c1f0 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;
}
More information about the Python-checkins
mailing list