Commit 15bd9476 authored by Stefan Behnel's avatar Stefan Behnel

Move the variable declarations in a C helper function to where they are...

Move the variable declarations in a C helper function to where they are actually used to avoid "unused" warnings in Py3.
parent d8dbd760
......@@ -289,8 +289,6 @@ static int __Pyx_TraceSetupAndCall(PyCodeObject** code,
}
static PyCodeObject *__Pyx_createFrameCodeObject(const char *funcname, const char *srcfile, int firstlineno) {
PyObject *py_srcfile = 0;
PyObject *py_funcname = 0;
PyCodeObject *py_code = 0;
#if PY_MAJOR_VERSION >= 3
......@@ -300,6 +298,8 @@ static PyCodeObject *__Pyx_createFrameCodeObject(const char *funcname, const cha
py_code->co_flags |= CO_OPTIMIZED | CO_NEWLOCALS;
}
#else
PyObject *py_srcfile = 0;
PyObject *py_funcname = 0;
py_funcname = PyString_FromString(funcname);
if (unlikely(!py_funcname)) goto bad;
......
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