From: Guido van Rossum Date: Tue, 18 Nov 2003 19:27:19 +0000 (+0000) Subject: Implement straightforward suggestions from gcc warnings (remove unused X-Git-Tag: v2.4a1~1271 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b61982bacbe0ebbeeb7a47018328979302d6221a;p=thirdparty%2FPython%2Fcpython.git Implement straightforward suggestions from gcc warnings (remove unused variable, add extra braces). --- diff --git a/Objects/setobject.c b/Objects/setobject.c index d8177278b522..2a53cbad5e29 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -70,8 +70,6 @@ frozenset_new(PyTypeObject *type, PyObject *args, PyObject *kwds) static PyObject * set_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { - PyObject *iterable = NULL; - return make_new_set(type, NULL); } @@ -781,11 +779,12 @@ If the element is not a member, raise a KeyError."); static PyObject * set_discard(PySetObject *so, PyObject *item) { - if (PyDict_DelItem(so->data, item) == -1) + if (PyDict_DelItem(so->data, item) == -1) { if (PyErr_ExceptionMatches(PyExc_KeyError)) PyErr_Clear(); else return NULL; + } Py_INCREF(Py_None); return Py_None; }