summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2014-01-04 19:09:09 (GMT)
committerLarry Hastings <larry@hastings.org>2014-01-04 19:09:09 (GMT)
commit3cceb384861eeae1f164568a9ea30534fdf2c87c (patch)
treee46cf8291ab3f31367845b16b169ea8feed5c0a0 /Include
parent583a93943c0f090ac2699d7feb33e72bfed7323e (diff)
downloadcpython-3cceb384861eeae1f164568a9ea30534fdf2c87c.zip
cpython-3cceb384861eeae1f164568a9ea30534fdf2c87c.tar.gz
cpython-3cceb384861eeae1f164568a9ea30534fdf2c87c.tar.bz2
Issue #19976: Argument Clinic METH_NOARGS functions now always
take two parameters.
Diffstat (limited to 'Include')
-rw-r--r--Include/pymacro.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pymacro.h b/Include/pymacro.h
index 793f67d..7997c55 100644
--- a/Include/pymacro.h
+++ b/Include/pymacro.h
@@ -69,4 +69,10 @@
/* Check if pointer "p" is aligned to "a"-bytes boundary. */
#define _Py_IS_ALIGNED(p, a) (!((Py_uintptr_t)(p) & (Py_uintptr_t)((a) - 1)))
+#ifdef __GNUC__
+#define Py_UNUSED(name) _unused_ ## name __attribute__((unused))
+#else
+#define Py_UNUSED(name) _unused_ ## name
+#endif
+
#endif /* Py_PYMACRO_H */