diff options
author | Kirill Podoprigora <kirill.bast9@mail.ru> | 2024-06-19 10:46:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 07:46:04 +0000 |
commit | a816cd67f43d9adb27ccdb6331e08c835247d1df (patch) | |
tree | 7ac99e7aab9d40b599d2b754aa4aa1d40760e577 /Python/import.c | |
parent | 45d5cab533a607716b2b41134839a59facf309cd (diff) | |
download | cpython-a816cd67f43d9adb27ccdb6331e08c835247d1df.tar.gz cpython-a816cd67f43d9adb27ccdb6331e08c835247d1df.zip |
gh-120726: Fix compiler warnings on is_core_module() (#120727)
Fix compiler warnings on is_core_module() and
check_interpreter_whence(): only define them when
assertions are built.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index 932881950d7..b7e2c3eb0e0 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1551,6 +1551,7 @@ get_core_module_dict(PyInterpreterState *interp, return NULL; } +#ifndef NDEBUG static inline int is_core_module(PyInterpreterState *interp, PyObject *name, PyObject *path) { @@ -1568,7 +1569,6 @@ is_core_module(PyInterpreterState *interp, PyObject *name, PyObject *path) } -#ifndef NDEBUG static _Py_ext_module_kind _get_extension_kind(PyModuleDef *def, bool check_size) { |