]> granicus.if.org Git - python/commitdiff
Issue #17832: fix a compilation warning about a function prototype.
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 24 Apr 2013 18:17:53 +0000 (20:17 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 24 Apr 2013 18:17:53 +0000 (20:17 +0200)
Also, make the private function static.

Python/pythonrun.c

index 751008ac303f5f748fefbd0b6bc52377f60663b5..0cd695f36e9cb4cbd40536673ec4f48fad61b76c 100644 (file)
@@ -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)