Skip to content

Commit e3f4070

Browse files
authored
bpo-33608: Fix PyEval_InitThreads() warning (GH-12346)
The function has no return value. Fix the following warning on Windows: python\ceval.c(180): warning C4098: 'PyEval_InitThreads': 'void' function returning a value
1 parent 6259976 commit e3f4070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ceval.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ PyEval_InitThreads(void)
177177

178178
_PyRuntime.ceval.pending.lock = PyThread_allocate_lock();
179179
if (_PyRuntime.ceval.pending.lock == NULL) {
180-
return Py_FatalError("Can't initialize threads for pending calls");
180+
Py_FatalError("Can't initialize threads for pending calls");
181181
}
182182
}
183183

0 commit comments

Comments
 (0)