summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-11-03 19:37:10 (GMT)
committerGitHub <noreply@github.com>2023-11-03 19:37:10 (GMT)
commitdf9815eb11b58dfaae02a8e3fb85ae8aa725dc17 (patch)
tree7b35fbff9fefa3fd11bdcca1381b160256f91ea5 /Python
parent20cfab903db70cf952128bc6b606e3ec4a216498 (diff)
downloadcpython-df9815eb11b58dfaae02a8e3fb85ae8aa725dc17.zip
cpython-df9815eb11b58dfaae02a8e3fb85ae8aa725dc17.tar.gz
cpython-df9815eb11b58dfaae02a8e3fb85ae8aa725dc17.tar.bz2
gh-111684: Avoid a Compiler Warning (gh-111706)
Diffstat (limited to 'Python')
-rw-r--r--Python/crossinterp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/crossinterp.c b/Python/crossinterp.c
index caca807..a65355a 100644
--- a/Python/crossinterp.c
+++ b/Python/crossinterp.c
@@ -1320,7 +1320,9 @@ _PyXI_NamespaceFromNames(PyObject *names)
return ns;
}
+#ifndef NDEBUG
static int _session_is_active(_PyXI_session *);
+#endif
static void _propagate_not_shareable_error(_PyXI_session *);
int
@@ -1468,11 +1470,13 @@ _exit_session(_PyXI_session *session)
session->init_tstate = NULL;
}
+#ifndef NDEBUG
static int
_session_is_active(_PyXI_session *session)
{
return (session->init_tstate != NULL);
}
+#endif
static void
_propagate_not_shareable_error(_PyXI_session *session)