Skip to content

Commit

Permalink
pythongh-123553: Fix compiler warning in Python/compile.c (python#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
Eclips4 authored Sep 1, 2024
1 parent bac0e11 commit 084e0f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 084e0f3

Please sign in to comment.