Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de26cfc

Browse files
committed
Suppress a bunch of "value computed is not used" warnings when building in
debug mode (--with-pydebug).
1 parent c687960 commit de26cfc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/ceval.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ eval_frame(PyFrameObject *f)
542542
#define BASIC_POP() (*--stack_pointer)
543543

544544
#ifdef LLTRACE
545-
#define PUSH(v) (BASIC_PUSH(v), lltrace && prtrace(TOP(), "push"))
546-
#define POP() (lltrace && prtrace(TOP(), "pop"), BASIC_POP())
545+
#define PUSH(v) (void)(BASIC_PUSH(v), lltrace && prtrace(TOP(), "push"))
546+
#define POP() ((void)(lltrace && prtrace(TOP(), "pop")), BASIC_POP())
547547
#else
548548
#define PUSH(v) BASIC_PUSH(v)
549549
#define POP() BASIC_POP()

0 commit comments

Comments
 (0)