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

Increase level of warnings, fix some possible uninitialized values #49

Merged
merged 3 commits into from
Apr 1, 2019

Conversation

mwtoews
Copy link
Collaborator

@mwtoews mwtoews commented Mar 9, 2019

The "gold standard" of warnings is to turn most of them on with -Wall (or -warn all for Intel). While this PR doesn't exactly do this, it does add most of them... and then turns off other warnings that may require more attention later (if any) using -Wno-...

Also, fflags now configured for breaking change from modflowpy/pymake#28

Some manual work with gfortran -O2 -Wmaybe-uninitialized was done to try and resolve some potential uninitialized values for mt3dms and mt3d-usgs. Note that none of these are confirmed as bugs. However, not all of these warnings were resolved due to possible false positive GCC bugs (maybe), so -Wno-maybe-uninitialized is used to disable this warning for now. Also, this flag didn't help discover #46 so there are possibly other variables lurking that would require other tools (e.g. Intel or Valgrind) to identify.

Found with `gfortran -O2 -Wmaybe-uninitialized`, however not all resolved
so keep `-Wno-maybe-uninitialized` for now.
Copy link
Collaborator

@langevin-usgs langevin-usgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I briefly looked through these changes and like them. We've been pretty sloppy in the past (because of Intel) regarding uninitialized variables.

@emorway-usgs emorway-usgs merged commit 8c1f3a9 into MODFLOW-USGS:develop Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants