summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorKirill Podoprigora <kirill.bast9@mail.ru>2024-09-01 06:29:34 (GMT)
committerGitHub <noreply@github.com>2024-09-01 06:29:34 (GMT)
commit084e0f35d1492495b01e7cf24c3106849e854188 (patch)
tree7b566cefeaa592820ed0e0bdf40fe5b92ef6a549 /Python
parentbac0e115b8c439def509053c71a6c20651348313 (diff)
downloadcpython-084e0f35d1492495b01e7cf24c3106849e854188.zip
cpython-084e0f35d1492495b01e7cf24c3106849e854188.tar.gz
cpython-084e0f35d1492495b01e7cf24c3106849e854188.tar.bz2
gh-123553: Fix compiler warning in `Python/compile.c` (#123554)
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 2419876..37db0d4 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -7476,12 +7476,14 @@ compiler_unit_metadata(struct compiler *c)
return &c->u->u_metadata;
}
+#ifndef NDEBUG
static int
compiler_is_top_level_await(struct compiler *c)
{
return c->c_flags.cf_flags & PyCF_ALLOW_TOP_LEVEL_AWAIT &&
c->u->u_ste->ste_type == ModuleBlock;
}
+#endif
// Merge *obj* with constant cache, without recursion.
int