From 95898c42913523d0a72c7b4f6c384eb42e06d5ca Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 17 Oct 2010 06:09:51 +0000 Subject: Fix compiler warning: module init functions do not return anything in 2.x. --- Modules/_multiprocessing/multiprocessing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c index 448868f..31bc803 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); } -- cgit v0.12