summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2013-12-21 22:11:42 +0100
committerStefan Behnel <stefan_ml@behnel.de>2013-12-21 22:11:42 +0100
commit2e97bdc8d5983463a5e07f2f5b4b82f617b07757 (patch)
treeff6710ec185acb396c9c6903c757ddc4361e41f8 /Cython/Compiler/ModuleNode.py
parent79b462112d0be5f78b69fc38da4d8a334a61b031 (diff)
downloadcython-2e97bdc8d5983463a5e07f2f5b4b82f617b07757.tar.gz
fix C compiler warning about unused expression result
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index 0225b9406..c1b5b8be5 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -1124,7 +1124,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("o = (PyObject*)%s[--%s];" % (
freelist_name, freecount_name))
code.putln("memset(o, 0, sizeof(%s));" % obj_struct)
- code.putln("PyObject_INIT(o, t);")
+ code.putln("(void) PyObject_INIT(o, t);")
if scope.needs_gc():
code.putln("PyObject_GC_Track(o);")
code.putln("} else {")