diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-15 16:04:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-15 16:04:20 +0100 |
commit | e3f4070aee6f2d489416fdcafd51d6b04d661919 (patch) | |
tree | 56af758ed8b5f8fd7d42c503f353bc09a3ce0387 /Python/ceval.c | |
parent | 625997622b4736e9184bdd8bf1e22a7b51be1afc (diff) | |
download | cpython-git-e3f4070aee6f2d489416fdcafd51d6b04d661919.tar.gz |
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
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 373cde9a17..dd8826bf9c 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -177,7 +177,7 @@ PyEval_InitThreads(void) _PyRuntime.ceval.pending.lock = PyThread_allocate_lock(); if (_PyRuntime.ceval.pending.lock == NULL) { - return Py_FatalError("Can't initialize threads for pending calls"); + Py_FatalError("Can't initialize threads for pending calls"); } } |