Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b61982b

Browse files
committed
Implement straightforward suggestions from gcc warnings (remove unused
variable, add extra braces).
1 parent 65674b8 commit b61982b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Objects/setobject.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ frozenset_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
7070
static PyObject *
7171
set_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
7272
{
73-
PyObject *iterable = NULL;
74-
7573
return make_new_set(type, NULL);
7674
}
7775

@@ -781,11 +779,12 @@ If the element is not a member, raise a KeyError.");
781779
static PyObject *
782780
set_discard(PySetObject *so, PyObject *item)
783781
{
784-
if (PyDict_DelItem(so->data, item) == -1)
782+
if (PyDict_DelItem(so->data, item) == -1) {
785783
if (PyErr_ExceptionMatches(PyExc_KeyError))
786784
PyErr_Clear();
787785
else
788786
return NULL;
787+
}
789788
Py_INCREF(Py_None);
790789
return Py_None;
791790
}

0 commit comments

Comments
 (0)