]> granicus.if.org Git - python/commitdiff
- Issue #11147: Fix an unused argument in _Py_ANNOTATE_MEMORY_ORDER. (Fix
authorBarry Warsaw <barry@python.org>
Mon, 5 Dec 2011 21:45:02 +0000 (16:45 -0500)
committerBarry Warsaw <barry@python.org>
Mon, 5 Dec 2011 21:45:02 +0000 (16:45 -0500)
  given by Campbell Barton).

Include/pyatomic.h
Misc/NEWS

index da45327b89c982cd11033dba2ffa43966ff5981e..d4e19e0070be577cb0d95c265f6ee8845192b4f9 100644 (file)
@@ -58,6 +58,7 @@ _Py_atomic_thread_fence(_Py_memory_order order)
 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:
index c5324644d4eaa751a1fbb4fe8e22ddb2ca25b4ee..e65e8054b4a0a3b44f922ceaf70bcd8a50f8ed78 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@ What's New in Python 3.2.3?
 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).