From: Victor Stinner Date: Thu, 26 May 2011 12:25:54 +0000 (+0200) Subject: SystemExit_init(): avoid an useless test X-Git-Tag: v3.3.0a1~2183^2~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92236e5651ade38b31281ed92e2c2846f8ccd0d8;p=python SystemExit_init(): avoid an useless test Make silent a false positive of the Clang Static Analyzer. --- diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 0106ba3df5..fb7864f0b2 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -499,7 +499,7 @@ SystemExit_init(PySystemExitObject *self, PyObject *args, PyObject *kwds) Py_CLEAR(self->code); if (size == 1) self->code = PyTuple_GET_ITEM(args, 0); - else if (size > 1) + else /* size > 1 */ self->code = args; Py_INCREF(self->code); return 0;