gh-111684: Avoid a Compiler Warning (gh-111706)

This commit is contained in:
Eric Snow 2023-11-03 13:37:10 -06:00 committed by GitHub
parent 20cfab903d
commit df9815eb11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1320,7 +1320,9 @@ _PyXI_NamespaceFromNames(PyObject *names)
return ns; return ns;
} }
#ifndef NDEBUG
static int _session_is_active(_PyXI_session *); static int _session_is_active(_PyXI_session *);
#endif
static void _propagate_not_shareable_error(_PyXI_session *); static void _propagate_not_shareable_error(_PyXI_session *);
int int
@ -1468,11 +1470,13 @@ _exit_session(_PyXI_session *session)
session->init_tstate = NULL; session->init_tstate = NULL;
} }
#ifndef NDEBUG
static int static int
_session_is_active(_PyXI_session *session) _session_is_active(_PyXI_session *session)
{ {
return (session->init_tstate != NULL); return (session->init_tstate != NULL);
} }
#endif
static void static void
_propagate_not_shareable_error(_PyXI_session *session) _propagate_not_shareable_error(_PyXI_session *session)