]> granicus.if.org Git - python/commitdiff
Suppress a bunch of "value computed is not used" warnings when building in
authorFred Drake <fdrake@acm.org>
Sat, 13 Oct 2001 06:11:28 +0000 (06:11 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 13 Oct 2001 06:11:28 +0000 (06:11 +0000)
debug mode (--with-pydebug).

Python/ceval.c

index 25ba4a0ff370487b6960c33ca6230e89ad6736e5..49b1fafd77a874738a6dc0ed753af7e086f79c3c 100644 (file)
@@ -542,8 +542,8 @@ eval_frame(PyFrameObject *f)
 #define BASIC_POP()    (*--stack_pointer)
 
 #ifdef LLTRACE
-#define PUSH(v)                (BASIC_PUSH(v), lltrace && prtrace(TOP(), "push"))
-#define POP()          (lltrace && prtrace(TOP(), "pop"), BASIC_POP())
+#define PUSH(v)                (void)(BASIC_PUSH(v), lltrace && prtrace(TOP(), "push"))
+#define POP()          ((void)(lltrace && prtrace(TOP(), "pop")), BASIC_POP())
 #else
 #define PUSH(v)                BASIC_PUSH(v)
 #define POP()          BASIC_POP()