8000 Shut up annoying warning · gvanrossum/cpython@3c919bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c919bb

Browse files
committed
Shut up annoying warning
1 parent fdbe440 commit 3c919bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Python/pystate.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,9 @@ free_interpreter(PyInterpreterState *interp)
584584
}
585585
}
586586

587+
#ifdef Py_DEBUG
587588
static inline int check_interpreter_whence(long);
589+
#endif
588590

589591
/* Get the interpreter state to a minimal consistent state.
590592
Further init happens in pylifecycle.c before it can be used.
@@ -1123,6 +1125,7 @@ _PyInterpreterState_IsReady(PyInterpreterState *interp)
11231125
}
11241126

11251127

1128+
#ifdef Py_DEBUG
11261129
static inline int
11271130
check_interpreter_whence(long whence)
11281131
{
@@ -1134,6 +1137,7 @@ check_interpreter_whence(long whence)
11341137
}
11351138
return 0;
11361139
}
1140+
#endif
11371141

11381142
long
11391143
_PyInterpreterState_GetWhence(PyInterpreterState *interp)

0 commit comments

Comments
 (0)
0