Fix compiler warning: module init functions do not return anything in 2.x.
This commit is contained in:
parent
886a1cd7dc
commit
95898c4291
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue