[Python-checkins] r75709 - python/branches/py3k/Modules/arraymodule.c

mark.dickinson python-checkins at python.org
Mon Oct 26 08:58:05 CET 2009


Author: mark.dickinson
Date: Mon Oct 26 08:58:04 2009
New Revision: 75709

Log:
Silence gcc warning about possibly uninitialized variable 'converted_items'

Modified:
   python/branches/py3k/Modules/arraymodule.c

Modified: python/branches/py3k/Modules/arraymodule.c
==============================================================================
--- python/branches/py3k/Modules/arraymodule.c	(original)
+++ python/branches/py3k/Modules/arraymodule.c	Mon Oct 26 08:58:04 2009
@@ -1850,6 +1850,8 @@
 		/* Impossible, but needed to shut up GCC about the unhandled
 		 * enumeration value.
 		 */
+	default:
+		PyErr_BadArgument();
 		return NULL;
 	}
 


More information about the Python-checkins mailing list