[Python-checkins] cpython (3.2): - Issue #11147: Fix an unused argument in _Py_ANNOTATE_MEMORY_ORDER. (Fix

barry.warsaw python-checkins at python.org
Mon Dec 5 22:50:49 CET 2011


http://hg.python.org/cpython/rev/4579cd952156
changeset: 73866:4579cd952156
branch: 3.2
parent: 73863:c34188efb965
user: Barry Warsaw <barry at python.org>
date: Mon Dec 05 16:45:02 2011 -0500
summary:
 - Issue #11147: Fix an unused argument in _Py_ANNOTATE_MEMORY_ORDER. (Fix
 given by Campbell Barton).
files:
 Include/pyatomic.h | 1 +
 Misc/NEWS | 3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Include/pyatomic.h b/Include/pyatomic.h
--- a/Include/pyatomic.h
+++ b/Include/pyatomic.h
@@ -58,6 +58,7 @@
 static __inline__ void
 _Py_ANNOTATE_MEMORY_ORDER(const volatile void *address, _Py_memory_order order)
 {
+ (void)address;		/* shut up -Wunused-parameter */
 switch(order) {
 case _Py_memory_order_release:
 case _Py_memory_order_acq_rel:
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@
 Core and Builtins
 -----------------
 
+- Issue #11147: Fix an unused argument in _Py_ANNOTATE_MEMORY_ORDER. (Fix
+ given by Campbell Barton).
+
 - Issue #7111: Python can now be run without a stdin, stdout or stderr
 stream. It was already the case with Python 2. However, the corresponding
 sys module entries are now set to None (instead of an unusable file object).
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /