comparison Python/pythonrun.c @ 83515:6eacc6c134a5

Issue #17832: fix a compilation warning about a function prototype. Also, make the private function static.
author Antoine Pitrou <solipsis@pitrou.net>
date Wed, 24 Apr 2013 20:17:53 +0200
parents 367167f93c30
children 97522b189c79
comparison
equal deleted inserted replaced
83514:e022cc026afc 83515:6eacc6c134a5
34 #include "windows.h" 34 #include "windows.h"
35 #define PATH_MAX MAXPATHLEN 35 #define PATH_MAX MAXPATHLEN
36 #endif 36 #endif
37 37
38 #ifdef Py_REF_DEBUG 38 #ifdef Py_REF_DEBUG
39 void _print_total_refs() { 39 static
40 void _print_total_refs(void) {
40 PyObject *xoptions, *key, *value; 41 PyObject *xoptions, *key, *value;
41 xoptions = PySys_GetXOptions(); 42 xoptions = PySys_GetXOptions();
42 if (xoptions == NULL) 43 if (xoptions == NULL)
43 return; 44 return;
44 key = PyUnicode_FromString("showrefcount"); 45 key = PyUnicode_FromString("showrefcount");