Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
ThePy_UNUSED() is not implemented for the Windows MSVC compiler.
Example with this function included by Python.h: see#107239 (comment)
static inline unsigned intPyUnicode_IS_READY(PyObject* Py_UNUSED(op)){ return 1; }Without my change, building a C program withcl /W4 which just includes Python.h emits the warning:
Include\cpython/unicodeobject.h(199): warning C4100: '_unused_op': unreferenced formal parameterWith my change, no warnings are emitted!