From: Mark Wooding Date: Thu, 27 Jul 2017 09:37:26 +0000 (+0100) Subject: array.c: Add fake initializations in `pop' and `shift' to muffle warnings. X-Git-Tag: 1.1.0~13 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/commitdiff_plain/d65a9a847e500ae144e31040454acba1a7333aaf array.c: Add fake initializations in `pop' and `shift' to muffle warnings. --- diff --git a/array.c b/array.c index 5ef0d4b..724f16b 100644 --- a/array.c +++ b/array.c @@ -518,7 +518,7 @@ static PyObject *dameth_push(PyObject *me, PyObject *arg) static PyObject *dameth_pop(PyObject *me, PyObject *arg) { - PyObject *x; + PyObject *x = Py_None; if (!PyArg_ParseTuple(arg, ":pop")) return (0); TRY @@ -545,7 +545,7 @@ static PyObject *dameth_unshift(PyObject *me, PyObject *arg) static PyObject *dameth_shift(PyObject *me, PyObject *arg) { - PyObject *x; + PyObject *x = Py_None; if (!PyArg_ParseTuple(arg, ":shift")) return (0); TRY