Commit c7069001 authored by Stefan Behnel's avatar Stefan Behnel

Resolve a C compiler warning in the fallback code for PyContextVar_Get() due...

Resolve a C compiler warning in the fallback code for PyContextVar_Get() due to an invalid conditional expression that was mixing a void command with a pointer value.
parent a0496ac8
......@@ -7,7 +7,10 @@ cdef extern from "Python.h":
"""
#if PY_VERSION_HEX < 0x030700b1 && !defined(PyContextVar_Get)
#define PyContextVar_Get(var, d, v) \
((void)(var), (d) ? Py_INCREF(d) : NULL, (v)[0] = (d), 0)
((d) ? \
((void)(var), Py_INCREF(d), (v)[0] = (d), 0) : \
((v)[0] = NULL, 0) \
)
#endif
"""
......
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