]> granicus.if.org Git - python/commitdiff
Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c
authorSenthil Kumaran <senthil@uthcode.com>
Wed, 19 Oct 2011 18:13:23 +0000 (02:13 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Wed, 19 Oct 2011 18:13:23 +0000 (02:13 +0800)
Modules/_sre.c

index 200e8dd95f45a73697ceaedfcb263ecfff0a51ce..cd9591796283a0dfd0c99c7bcc14c172cea5c6f8 100644 (file)
@@ -2744,7 +2744,7 @@ _compile(PyObject* self_, PyObject* args)
 #if defined(VVERBOSE)
 #define VTRACE(v) printf v
 #else
-#define VTRACE(v)
+#define VTRACE(v) do {} while(0)  /* do nothing */
 #endif
 
 /* Report failure */