summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-04-24 18:17:53 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-04-24 18:17:53 (GMT)
commit208ac5cf6553e8c83dbefef8ef180c5394baa7bc (patch)
tree9bfaa3d8fc28fef9a3eabc8af785563687e20285 /Python/pythonrun.c
parent45f3d2fff08af8b13a52f72d2342934253e3690d (diff)
downloadcpython-208ac5cf6553e8c83dbefef8ef180c5394baa7bc.zip
cpython-208ac5cf6553e8c83dbefef8ef180c5394baa7bc.tar.gz
cpython-208ac5cf6553e8c83dbefef8ef180c5394baa7bc.tar.bz2
Issue #17832: fix a compilation warning about a function prototype.
Also, make the private function static.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 751008a..0cd695f 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -36,7 +36,8 @@
#endif
#ifdef Py_REF_DEBUG
-void _print_total_refs() {
+static
+void _print_total_refs(void) {
PyObject *xoptions, *key, *value;
xoptions = PySys_GetXOptions();
if (xoptions == NULL)