Kaydet (Commit) f0900199 authored tarafından Rémi Lapeyre's avatar Rémi Lapeyre Kaydeden (comit) Inada Naoki

Suppress clang warning (GH-12384)

üst 47541689
...@@ -1259,7 +1259,8 @@ _Py_Sigset_Converter(PyObject *obj, void *addr) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment