https://github.com/python/cpython/commit/084e0f35d1492495b01e7cf24c3106849e854188
commit: 084e0f35d1492495b01e7cf24c3106849e854188
branch: main
author: Kirill Podoprigora <[email protected]>
committer: iritkatriel <[email protected]>
date: 2024-09-01T06:29:34Z
summary:
gh-123553: Fix compiler warning in `Python/compile.c` (#123554)
files:
M Python/compile.c
diff --git a/Python/compile.c b/Python/compile.c
index 2419876e3b1408..37db0d4f26ff15 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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]