chiark
/
gitweb
/
~mdw
/
mLib-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39bc54f
)
array.c: Add fake initializations in `pop' and `shift' to muffle warnings.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 27 Jul 2017 09:37:26 +0000
(10:37 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 16 Aug 2017 03:25:33 +0000
(
04:25
+0100)
array.c
patch
|
blob
|
blame
|
history
diff --git
a/array.c
b/array.c
index 5ef0d4b4467856d7c782190f0d6e353136d96bda..724f16b8cd6f489c1a8702231967283e3b225a9e 100644
(file)
--- 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