diff options
author | Dmitry Marakasov <amdmi3@amdmi3.ru> | 2019-04-06 09:04:47 (GMT) |
---|---|---|
committer | Inada Naoki <songofacandy@gmail.com> | 2019-04-06 09:04:47 (GMT) |
commit | a0da131a74acdb147ecd64d729c86d65fecd0cff (patch) | |
tree | 7e90b1ee7b97e0f8e73bb3ebfe8e65dcf71a5d19 | |
parent | 1328375ad1c91f25a1500945a67b0ef36e387527 (diff) | |
download | cpython-a0da131a74acdb147ecd64d729c86d65fecd0cff.zip cpython-a0da131a74acdb147ecd64d729c86d65fecd0cff.tar.gz cpython-a0da131a74acdb147ecd64d729c86d65fecd0cff.tar.bz2 |
bpo-36527: silence -Wunused-parameter warnings in object.h (GH-12688)
-rw-r--r-- | Include/object.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index a729335..86cbfc5 100644 --- a/Include/object.h +++ b/Include/object.h @@ -440,6 +440,7 @@ static inline void _Py_NewReference(PyObject *op) static inline void _Py_ForgetReference(PyObject *op) { + (void)op; /* may be unused, shut up -Wunused-parameter */ _Py_INC_TPFREES(op); } #endif /* !Py_TRACE_REFS */ @@ -458,6 +459,8 @@ static inline void _Py_INCREF(PyObject *op) static inline void _Py_DECREF(const char *filename, int lineno, PyObject *op) { + (void)filename; /* may be unused, shut up -Wunused-parameter */ + (void)lineno; /* may be unused, shut up -Wunused-parameter */ _Py_DEC_REFTOTAL; if (--op->ob_refcnt != 0) { #ifdef Py_REF_DEBUG |