-
Notifications
You must be signed in to change notification settings - Fork 16
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
[WIP] Squashed Warnings Pyb11 Modules #27
Conversation
…geModel for declaration in pybind11 module.
…ged function signature.
… 'throw will always terminate' warning from DBC.hh
…g increasingly difficult to manage generated local typedef instantiations without significant changes to how PYB11Generator. Since we aren't writing these cpp files explicitly this is less favourable but reasonable.
I saw the commit turning off warnings for unused typedefs in PYB11 modules. I think this is a good change -- it's actually more work for the developer adding & removing typedefs for each class I think, and having some blanket typedefs does not seem harmful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builds and tests properly for me, so I'm good to go.
…ig to develop * commit '2ef3319df2eac1bfb22f33592bb29198afcac44d': Updated build docs with ENABLE_OPENSUBDIV option. Adding a cmake flag ENABLE_OPENSUBDIV to explicitly control whether Opensubdiv should be used.
Summary
This PR squashes all warnings for a complete Spheral Python modules build with GCC.
Changes
Set CMake warnings flag to ON.
Silence unused-local-typedef warnings for all Spheral python modules. This is necessary due to the way in which PYB11Generator creates the pybind11 .cc Spheral files.
Silence terminate warning on SpheralSilo.cc. This is tracked down to a VERIFY2 macro call from DBC.hh which throws this error. (An issue will be created to track this in the future).
Silence uninitialized-variable from bisectSearch. This is being caused by some issue in the boost multi-array Iterator. (Issue will be created).
Various unused-parameter, sign-conversion, unused-variable warnings throughout.
Pybind11Wraps function signature fixes. Missing args, const/non-non const, return types etc.