Fix compiler warning: module init functions do not return anything in 2.x.

This commit is contained in:
Georg Brandl 2010-10-17 06:09:51 +00:00
parent 886a1cd7dc
commit 95898c4291
1 changed files with 1 additions and 1 deletions

View 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);
}