Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bpo-36527: silence -Wunused-parameter warnings in object.h (GH-12688)
  • Loading branch information
AMDmi3 authored and methane committed Apr 6, 2019
1 parent 1328375 commit a0da131
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Include/object.h
Expand Up @@ -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 */
Expand All @@ -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
Expand Down

0 comments on commit a0da131

Please sign in to comment.