From: Georg Brandl Date: Sun, 17 Oct 2010 06:09:51 +0000 (+0000) Subject: Fix compiler warning: module init functions do not return anything in 2.x. X-Git-Tag: v2.7.1rc1~143 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95898c42913523d0a72c7b4f6c384eb42e06d5ca;p=python Fix compiler warning: module init functions do not return anything in 2.x. --- diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c index 448868fe4b..31bc80355e 100644 --- a/Modules/_multiprocessing/multiprocessing.c +++ b/Modules/_multiprocessing/multiprocessing.c @@ -265,7 +265,7 @@ init_multiprocessing(void) else py_sem_value_max = PyLong_FromLong(SEM_VALUE_MAX); if (py_sem_value_max == NULL) - return NULL; + return; PyDict_SetItemString(SemLockType.tp_dict, "SEM_VALUE_MAX", py_sem_value_max); }