diff options
author | Fred Drake <fdrake@acm.org> | 2001-10-13 06:11:28 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-10-13 06:11:28 (GMT) |
commit | de26cfc1e12c19720d0deebe4b3be1e822dc90c8 (patch) | |
tree | df59a796bb4421431fb8ef3bbb2258fcff666e29 /Python/ceval.c | |
parent | c6879604963786abbbf06659cabc5175f5e79a5f (diff) | |
download | cpython-de26cfc1e12c19720d0deebe4b3be1e822dc90c8.zip cpython-de26cfc1e12c19720d0deebe4b3be1e822dc90c8.tar.gz cpython-de26cfc1e12c19720d0deebe4b3be1e822dc90c8.tar.bz2 |
Suppress a bunch of "value computed is not used" warnings when building in
debug mode (--with-pydebug).
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 25ba4a0..49b1faf 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() |