Skip to content

Commit

Permalink
gh-92536: Mark PyUnicode_READY() argument as unused (#93011)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob authored May 23, 2022
1 parent a458be3 commit b2694ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Include/cpython/unicodeobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit b2694ab

Please sign in to comment.