mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
gh-111684: Avoid a Compiler Warning (gh-111706)
This commit is contained in:
parent
20cfab903d
commit
df9815eb11
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue