c89 declarations

This commit is contained in:
Benjamin Peterson 2010-11-20 02:01:45 +00:00
parent 5b066817e2
commit 0e9e98edc7
2 changed files with 11 additions and 11 deletions

View file

@ -366,9 +366,9 @@ class Obj2ModVisitor(PickleVisitor):
self.emit("obj2ast_%s(PyObject* obj, %s* out, PyArena* arena)" % (name, ctype), 0)
self.emit("{", 0)
self.emit("PyObject* tmp = NULL;", 1)
self.emit("int isinstance;", 1)
# Prevent compiler warnings about unused variable.
self.emit("tmp = tmp;", 1)
self.emit("int isinstance;", 1)
self.emit("", 0)
def sumTrailer(self, name, add_label=False):