[Python-checkins] gh-99955: undef ERROR and SUCCESS before redefining (fixes sanitizer warning) (#100215)

iritkatriel webhook-mailer at python.org
Tue Dec 13 08:55:16 EST 2022


https://github.com/python/cpython/commit/985a71032bf055240e61259285a0b4925c925383
commit: 985a71032bf055240e61259285a0b4925c925383
branch: main
author: Irit Katriel <1055913+iritkatriel at users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2022-12-13T13:55:10Z
summary:

gh-99955: undef ERROR and SUCCESS before redefining (fixes sanitizer warning) (#100215)

files:
M Python/compile.c

diff --git a/Python/compile.c b/Python/compile.c
index 17b164a4d06e..813e0d5503b4 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
 



More information about the Python-checkins mailing list