]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Silence gcc warning about possibly uninitialized variable 'converted_items'
authorMark Dickinson <dickinsm@gmail.com>
Mon, 26 Oct 2009 07:58:04 +0000 (07:58 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Mon, 26 Oct 2009 07:58:04 +0000 (07:58 +0000)
Modules/arraymodule.c

index 0ac3cab126f3faa01b569194c4a571b335e043c2..479189067a92097d2efa588e99c37f41b6bab73c 100644 (file)
@@ -1850,6 +1850,8 @@ array_reconstructor(PyObject *self, PyObject *args)
                /* Impossible, but needed to shut up GCC about the unhandled
                 * enumeration value.
                 */
+       default:
+               PyErr_BadArgument();
                return NULL;
        }