From 36fb323a7eb054de58082a649fb9415c8384408d Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Fri, 6 Mar 2009 18:33:55 -0200 Subject: [PATCH] Fix warning when __Pyx_Print is not used --- Cython/Compiler/Nodes.py | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.26.2