From: Lisandro Dalcin Date: Fri, 6 Mar 2009 20:33:55 +0000 (-0200) Subject: Fix warning when __Pyx_Print is not used X-Git-Tag: 0.11.rc~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=36fb323a7eb054de58082a649fb9415c8384408d;p=cython.git Fix warning when __Pyx_Print is not used --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index eacc97f0..2db5e90a 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -4914,6 +4914,9 @@ static int __Pyx_PrintOne(PyObject *o) { if (PyFile_WriteString("\n", f) < 0) return -1; return 0; + /* the line below is just to avoid compiler + * compiler warnings about unused functions */ + __Pyx_Print(NULL, 0); } #else /* Python 3 has a print function */