summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2022-12-13 13:55:10 (GMT)
committerGitHub <noreply@github.com>2022-12-13 13:55:10 (GMT)
commit985a71032bf055240e61259285a0b4925c925383 (patch)
tree2441a35a45a1235da8ee3126fc203b92c4203ce5
parentd3ea82aaf940167482df1e08d6482de8f2dd8526 (diff)
downloadcpython-985a71032bf055240e61259285a0b4925c925383.zip
cpython-985a71032bf055240e61259285a0b4925c925383.tar.gz
cpython-985a71032bf055240e61259285a0b4925c925383.tar.bz2
gh-99955: undef ERROR and SUCCESS before redefining (fixes sanitizer warning) (#100215)
-rw-r--r--Python/compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 17b164a..813e0d5 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -55,6 +55,8 @@
*/
#define STACK_USE_GUIDELINE 30
+#undef SUCCESS
+#undef ERROR
#define SUCCESS 0
#define ERROR -1