From 2e97bdc8d5983463a5e07f2f5b4b82f617b07757 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 21 Dec 2013 22:11:42 +0100 Subject: [PATCH] fix C compiler warning about unused expression result --- Cython/Compiler/ModuleNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 0225b94..c1b5b8b 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 {") -- 2.7.4