Skip to content
Permalink
Browse files

Suppress clang warning (GH-12384)

  • Loading branch information...
remilapeyre authored and methane committed May 3, 2019
1 parent 4754168 commit f0900199d53df97bd792ac5a1678f8c477f117bb
Showing with 2 additions and 1 deletion.
  1. +2 −1 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;

0 comments on commit f090019

Please sign in to comment.
You can’t perform that action at this time.