mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-123553: Fix compiler warning in Python/compile.c
(#123554)
This commit is contained in:
parent
bac0e115b8
commit
084e0f35d1
1 changed files with 2 additions and 0 deletions
|
@ -7476,12 +7476,14 @@ compiler_unit_metadata(struct compiler *c)
|
||||||
return &c->u->u_metadata;
|
return &c->u->u_metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
static int
|
static int
|
||||||
compiler_is_top_level_await(struct compiler *c)
|
compiler_is_top_level_await(struct compiler *c)
|
||||||
{
|
{
|
||||||
return c->c_flags.cf_flags & PyCF_ALLOW_TOP_LEVEL_AWAIT &&
|
return c->c_flags.cf_flags & PyCF_ALLOW_TOP_LEVEL_AWAIT &&
|
||||||
c->u->u_ste->ste_type == ModuleBlock;
|
c->u->u_ste->ste_type == ModuleBlock;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Merge *obj* with constant cache, without recursion.
|
// Merge *obj* with constant cache, without recursion.
|
||||||
int
|
int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue