Skip to content

Commit

Permalink
Mark MakeType(PyObject*) with maybe_unused
Browse files Browse the repository at this point in the history
To suppress the "unused function" warning on a newer verions of gcc
  • Loading branch information
polyntsov committed Aug 17, 2023
1 parent c016b54 commit 2504e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python_bindings/get_py_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ py::handle MakeType(PyTypeObject* py_type_ptr) {
return reinterpret_cast<PyObject*>(py_type_ptr);
}

py::handle MakeType(PyObject* py_type_ptr) {
[[maybe_unused]] py::handle MakeType(PyObject* py_type_ptr) {
return py_type_ptr;
}

Expand Down

0 comments on commit 2504e8f

Please sign in to comment.