]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-123553: Fix compile warning in `compile.c` (#123578)
authorsobolevn <mail@sobolevn.me>
Sun, 1 Sep 2024 15:43:45 +0000 (18:43 +0300)
committerGitHub <noreply@github.com>
Sun, 1 Sep 2024 15:43:45 +0000 (15:43 +0000)
Python/compile.c

index 37db0d4f26ff150fd30f4c6f2d92d82d6908a539..4aa9e7b25eec4c2e0fe85977fb47284d7038b945 100644 (file)
@@ -102,7 +102,9 @@ typedef _PyJumpTargetLabel jump_target_label;
 
 enum fblocktype;
 
+#ifndef NDEBUG
 static int compiler_is_top_level_await(struct compiler *c);
+#endif
 static PyObject *compiler_mangle(struct compiler *c, PyObject *name);
 static PyObject *compiler_maybe_mangle(struct compiler *c, PyObject *name);
 static int compiler_optimization_level(struct compiler *c);