Suppress clang warning (GH-12384)

This commit is contained in:
Rémi Lapeyre 2019-05-04 01:30:53 +02:00 committed by Inada Naoki
parent 47541689cc
commit f0900199d5
1 changed files with 2 additions and 1 deletions

View File

@ -1259,7 +1259,8 @@ _Py_Sigset_Converter(PyObject *obj, void *addr)
long signum;
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. */
PyErr_SetFromErrno(PyExc_OSError);
return 0;