summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRĂ©mi Lapeyre <remi.lapeyre@henki.fr>2019-05-03 23:30:53 (GMT)
committerInada Naoki <songofacandy@gmail.com>2019-05-03 23:30:53 (GMT)
commitf0900199d53df97bd792ac5a1678f8c477f117bb (patch)
tree2801bd0ff1fd34d270917effe7de241f77b56c22 /Modules
parent47541689ccea79dfcb055c6be5800b13fcb6bdd2 (diff)
downloadcpython-f0900199d53df97bd792ac5a1678f8c477f117bb.zip
cpython-f0900199d53df97bd792ac5a1678f8c477f117bb.tar.gz
cpython-f0900199d53df97bd792ac5a1678f8c477f117bb.tar.bz2
Suppress clang warning (GH-12384)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 56ec3ee..221f710 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -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;