[Cython] GCC, warning ‘__Pyx_Print’ defined but not used (Python 2.X)

Robert Bradshaw robertwb at math.washington.edu
Fri Mar 6 21:11:41 CET 2009


On Mar 6, 2009, at 12:08 PM, Lisandro Dalcin wrote:

> classmethod.c:1229: warning: ‘__Pyx_Print’ defined but not used
>
> Not sure how to fix it. Could PrintOne also call Print for Py2?

The whole point of PrintOne was to avoid the overhead of calling  
Print. If we call it after we return, or "if (0) __Pyx_Print(...)",  
does that get rid of the warning even though it's optimized away?

- Robert



More information about the Cython-dev mailing list