summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Modules/posixmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 56ec3ee5a0..221f7101b2 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;