projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d485d41
)
Fix warning when __Pyx_Print is not used
author
Lisandro Dalcin
<dalcinl@gmail.com>
Fri, 6 Mar 2009 20:33:55 +0000
(18:33 -0200)
committer
Lisandro Dalcin
<dalcinl@gmail.com>
Fri, 6 Mar 2009 20:33:55 +0000
(18:33 -0200)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index eacc97f01a3c6d1d5c17860bfcbf3c41223c4143..2db5e90aef8bf63c678563f6fd5a95abc84fab6f 100644
(file)
--- 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 */