[Python-Dev] warnings --with-pydebug

Jeremy Hylton jeremy@beopen.com
Fri, 13 Oct 2000 19:11:10 -0400 (EDT)


If you configure using '--with-pydebug' you get a lot of compile-time
warnings. 

../../Python/ceval.c: In function `eval_code2':
../../Python/ceval.c:672: warning: value computed is not used
../../Python/ceval.c:675: warning: value computed is not used
../../Python/ceval.c:678: warning: value computed is not used
../../Python/ceval.c:680: warning: value computed is not used
../../Python/ceval.c:681: warning: value computed is not used
[etc.]

I assume these are caused by the definition of Py_INCREF
#define Py_INCREF(op) (_Py_RefTotal++, (op)->ob_refcnt++)

Is there some way to change this macro so that the warnings are
silenced? 

Jeremy