From: Fred Drake Date: Sat, 13 Oct 2001 06:11:28 +0000 (+0000) Subject: Suppress a bunch of "value computed is not used" warnings when building in X-Git-Tag: v2.2.1c1~1305 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de26cfc1e12c19720d0deebe4b3be1e822dc90c8;p=python Suppress a bunch of "value computed is not used" warnings when building in debug mode (--with-pydebug). --- diff --git a/Python/ceval.c b/Python/ceval.c index 25ba4a0ff3..49b1fafd77 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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()