]> granicus.if.org Git - python/commitdiff
Fix compiler warning: module init functions do not return anything in 2.x.
authorGeorg Brandl <georg@python.org>
Sun, 17 Oct 2010 06:09:51 +0000 (06:09 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 17 Oct 2010 06:09:51 +0000 (06:09 +0000)
Modules/_multiprocessing/multiprocessing.c

index 448868fe4b0af2314cc9a37aeb35d3b2553ab3bf..31bc80355e02f3e0b318408cfe64bf51f5044b21 100644 (file)
@@ -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);
     }