diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 0ac3cab126f3..479189067a92 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -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; }