summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-24 13:16:08 (GMT)
committerGitHub <noreply@github.com>2019-05-24 13:16:08 (GMT)
commitb3a9843cd19039808a812ca11206881c94c64e3b (patch)
treeee801eaed47ba95e99592e26d8c5b041b992bcf7 /Doc/c-api
parentb4bdecd0fc9112b60a81fec171bc78bc13f2f59c (diff)
downloadcpython-b3a9843cd19039808a812ca11206881c94c64e3b.zip
cpython-b3a9843cd19039808a812ca11206881c94c64e3b.tar.gz
cpython-b3a9843cd19039808a812ca11206881c94c64e3b.tar.bz2
Support Py_UNUSED() on clang (GH-13544)
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/intro.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst
index b003bba..672936a 100644
--- a/Doc/c-api/intro.rst
+++ b/Doc/c-api/intro.rst
@@ -156,7 +156,7 @@ complete listing.
.. c:macro:: Py_UNUSED(arg)
Use this for unused arguments in a function definition to silence compiler
- warnings, e.g. ``PyObject* func(PyObject *Py_UNUSED(ignored))``.
+ warnings. Example: ``int func(int a, int Py_UNUSED(b)) { return a; }``.
.. versionadded:: 3.4