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

[WIP] Squashed Warnings Pyb11 Modules #27

Merged
merged 38 commits into from
Sep 17, 2020
Merged

Conversation

mdavis36
Copy link
Collaborator

@mdavis36 mdavis36 commented Sep 3, 2020

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.

@mdavis36 mdavis36 changed the title squashed warnings py [WIP] Squashed Warnings Pyb11 Modules Sep 3, 2020
@jmikeowen
Copy link
Collaborator

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.

@mdavis36 mdavis36 marked this pull request as ready for review September 16, 2020 18:46
Copy link
Collaborator

@jmikeowen jmikeowen left a 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.

@mdavis36 mdavis36 merged commit 032c495 into develop Sep 17, 2020
@mdavis36 mdavis36 deleted the bugfix/squashed-warnings-py branch September 17, 2020 16:09
jmikeowen pushed a commit that referenced this pull request Dec 23, 2020
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants