Commit 2e97bdc8 authored by Stefan Behnel's avatar Stefan Behnel

fix C compiler warning about unused expression result

parent 79b46211
...@@ -1124,7 +1124,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -1124,7 +1124,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("o = (PyObject*)%s[--%s];" % ( code.putln("o = (PyObject*)%s[--%s];" % (
freelist_name, freecount_name)) freelist_name, freecount_name))
code.putln("memset(o, 0, sizeof(%s));" % obj_struct) 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(): if scope.needs_gc():
code.putln("PyObject_GC_Track(o);") code.putln("PyObject_GC_Track(o);")
code.putln("} else {") code.putln("} else {")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment