aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/crossinterp.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2025-05-22 11:24:09 -0600
committerGitHub <noreply@github.com>2025-05-22 17:24:09 +0000
commitac06b534eed08ae42eea89e3854e1e90e8231318 (patch)
tree0482d93983d00a58d21871b75f9d142312cc9019 /Python/crossinterp.c
parent484e00379bd1f2e9b2e273af3e6d524cd07b0c6c (diff)
downloadcpython-ac06b534eed08ae42eea89e3854e1e90e8231318.tar.gz
cpython-ac06b534eed08ae42eea89e3854e1e90e8231318.zip
gh-132775: Fix Recently Introduced Warnings (gh-134530)
Diffstat (limited to 'Python/crossinterp.c')
-rw-r--r--Python/crossinterp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/crossinterp.c b/Python/crossinterp.c
index 65ccab32daf..26eecdddf4b 100644
--- a/Python/crossinterp.c
+++ b/Python/crossinterp.c
@@ -1795,6 +1795,7 @@ typedef struct _sharednsitem {
// in a different interpreter to release the XI data.
} _PyXI_namespace_item;
+#ifndef NDEBUG
static int
_sharednsitem_is_initialized(_PyXI_namespace_item *item)
{
@@ -1803,6 +1804,7 @@ _sharednsitem_is_initialized(_PyXI_namespace_item *item)
}
return 0;
}
+#endif
static int
_sharednsitem_init(_PyXI_namespace_item *item, PyObject *key)