diff Include/pyatomic.h @ 73866:4579cd952156 3.2

- Issue #11147: Fix an unused argument in _Py_ANNOTATE_MEMORY_ORDER. (Fix given by Campbell Barton).
author Barry Warsaw <barry@python.org>
date Mon, 05 Dec 2011 16:45:02 -0500
parents f855f929bc48
children
line wrap: on
line diff
--- a/Include/pyatomic.h	Mon Dec 05 01:46:35 2011 +0100
+++ b/Include/pyatomic.h	Mon Dec 05 16:45:02 2011 -0500
@@ -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: