Suppress clang warning (GH-12384)
This commit is contained in:
parent
47541689cc
commit
f0900199d5
|
@ -1259,7 +1259,8 @@ _Py_Sigset_Converter(PyObject *obj, void *addr)
|
||||||
long signum;
|
long signum;
|
||||||
int overflow;
|
int overflow;
|
||||||
|
|
||||||
if (sigemptyset(mask)) {
|
// The extra parens suppress the unreachable-code warning with clang on MacOS
|
||||||
|
if (sigemptyset(mask) < (0)) {
|
||||||
/* Probably only if mask == NULL. */
|
/* Probably only if mask == NULL. */
|
||||||
PyErr_SetFromErrno(PyExc_OSError);
|
PyErr_SetFromErrno(PyExc_OSError);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue