Changeset View
Changeset View
Standalone View
Standalone View
lang/python38/files/patch-Include_object.h
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
From 662db8efbc05fb58e2f703dbe7b41a068ef37924 Mon Sep 17 00:00:00 2001 | |||||
From: Dmitry Marakasov <amdmi3@amdmi3.ru> | |||||
Date: Thu, 4 Apr 2019 19:09:15 +0300 | |||||
Subject: [PATCH] bpo-36527: silence -Wunused-parameter warnings in object.h | |||||
--- | |||||
Include/object.h | 3 +++ | |||||
1 file changed, 3 insertions(+) | |||||
diff --git a/Include/object.h b/Include/object.h | |||||
index a729335750c7..86cbfc581ed1 100644 | |||||
--- Include/object.h | |||||
+++ 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 |