mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-29 19:07:03 +00:00
* Change PyCFunction cast in function_record_pyobject.h to sidestep unhelpful compiler warnings.
* Resolve clang-tidy error
/__w/pybind11/pybind11/include/pybind11/detail/function_record_pyobject.h:41:39: error: do not cast 'PyObject *(PyObject *, PyObject *, PyObject *)' (aka '_object *(_object *, _object *, _object *)') to 'PyCFunction' (aka '_object *(*)(_object *, _object *)') through 'void *' [bugprone-casting-through-void,-warnings-as-errors]
41 | reinterpret_cast<PyCFunction>(reinterpret_cast<void *>(reduce_ex_impl)),
| ^