From d65a9a847e500ae144e31040454acba1a7333aaf Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Thu, 27 Jul 2017 10:37:26 +0100 Subject: [PATCH] array.c: Add fake initializations in `pop' and `shift' to muffle warnings. Organization: Straylight/Edgeware From: Mark Wooding --- array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- [mdw]