Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport pybind11 warning fix #1404

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions python/src/sdf/_gz_sdformat_pybind11.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ PYBIND11_MODULE(BINDINGS_MODULE_NAME, m) {
sdfErrorsException.attr("errors") = pybind11::cast(e.Errors());
// This has to be called last since it's the call that sets
// PyErr_SetString.
#if PYBIND11_VERSION_HEX >= 0x020C0000
pybind11::set_error(sdfErrorsException, e.what());
#else
sdfErrorsException(e.what());
#endif
}
});

Expand Down
Loading