Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Include/object.h
Original file line number Diff line number Diff line change
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 */
Comment thread
methane marked this conversation as resolved.
_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