Skip to content

Commit 208ac5c

Browse files
committed
Issue #17832: fix a compilation warning about a function prototype.
Also, make the private function static.
1 parent 45f3d2f commit 208ac5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/pythonrun.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
#endif
3737

3838
#ifdef Py_REF_DEBUG
39-
void _print_total_refs() {
39+
static
40+
void _print_total_refs(void) {
4041
PyObject *xoptions, *key, *value;
4142
xoptions = PySys_GetXOptions();
4243
if (xoptions == NULL)

0 commit comments

Comments
 (0)