diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-19 10:23:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 10:23:28 (GMT) |
commit | 071b66b218d71d9f4fbdef6487f82fed808c81d4 (patch) | |
tree | 71e040a5716db2c68204b0cda37dd0665220e4c6 /Python/import.c | |
parent | 9be94f9ce6dbc944e9807534664dbde28077f737 (diff) | |
download | cpython-071b66b218d71d9f4fbdef6487f82fed808c81d4.zip cpython-071b66b218d71d9f4fbdef6487f82fed808c81d4.tar.gz cpython-071b66b218d71d9f4fbdef6487f82fed808c81d4.tar.bz2 |
[3.13] gh-120726: Fix compiler warnings on is_core_module() (GH-120727) (#120729)
gh-120726: Fix compiler warnings on is_core_module() (GH-120727)
Fix compiler warnings on is_core_module() and
check_interpreter_whence(): only define them when
assertions are built.
(cherry picked from commit a816cd67f43d9adb27ccdb6331e08c835247d1df)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
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 8cf97b5..005f769 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) { |