Commit 1bd1d1c
authored
Change
* 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)),
| ^PyCFunction cast in function_record_pyobject.h to sidestep unhelpful compiler warnings. (#5608)1 parent 708ce4d commit 1bd1d1c
1 file changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 35 | | |
43 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | | - | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments