Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 20409:b98185c882e4 legacy-trunk
Suppress a bunch of "value computed is not used" warnings when building in
debug mode (--with-pydebug).
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Sat, 13 Oct 2001 06:11:28 +0000 |
| parents | 167e7f98b51f |
| children | 08d7a6756bfe |
line wrap: on
line diff
--- a/Python/ceval.c Sat Oct 13 03:00:11 2001 +0000 +++ b/Python/ceval.c Sat Oct 13 06:11:28 2001 +0000 @@ -542,8 +542,8 @@ #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()
