From: Stefan Behnel Date: Sat, 12 Oct 2013 14:17:29 +0000 (+0200) Subject: fix warnings in refnanny module X-Git-Tag: 0.20b1~282^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6902bf813ea0952374535a1790ed24cc5fdb06b6;p=platform%2Fupstream%2Fpython-cython.git fix warnings in refnanny module --- diff --git a/Cython/Runtime/refnanny.pyx b/Cython/Runtime/refnanny.pyx index 136e69b..1f7e85f 100644 --- a/Cython/Runtime/refnanny.pyx +++ b/Cython/Runtime/refnanny.pyx @@ -86,8 +86,7 @@ cdef PyObject* SetupContext(char* funcname, int lineno, char* filename) except N # In that case, we don't want to be doing anything fancy # like caching and resetting exceptions. return NULL - cdef PyObject* type = NULL, *value = NULL, *tb = NULL - cdef PyObject* result = NULL + cdef (PyObject*) type = NULL, value = NULL, tb = NULL, result = NULL PyThreadState_Get() PyErr_Fetch(&type, &value, &tb) try: @@ -101,7 +100,7 @@ cdef PyObject* SetupContext(char* funcname, int lineno, char* filename) except N cdef void GOTREF(PyObject* ctx, PyObject* p_obj, int lineno): if ctx == NULL: return - cdef PyObject* type = NULL, *value = NULL, *tb = NULL + cdef (PyObject*) type = NULL, value = NULL, tb = NULL PyErr_Fetch(&type, &value, &tb) try: try: @@ -118,7 +117,7 @@ cdef void GOTREF(PyObject* ctx, PyObject* p_obj, int lineno): cdef int GIVEREF_and_report(PyObject* ctx, PyObject* p_obj, int lineno): if ctx == NULL: return 1 - cdef PyObject* type = NULL, *value = NULL, *tb = NULL + cdef (PyObject*) type = NULL, value = NULL, tb = NULL cdef bint decref_ok = False PyErr_Fetch(&type, &value, &tb) try: @@ -150,7 +149,7 @@ cdef void DECREF(PyObject* ctx, PyObject* obj, int lineno): cdef void FinishContext(PyObject** ctx): if ctx == NULL or ctx[0] == NULL: return - cdef PyObject* type = NULL, *value = NULL, *tb = NULL + cdef (PyObject*) type = NULL, value = NULL, tb = NULL cdef object errors = None cdef Context context PyThreadState_Get()