-
Notifications
You must be signed in to change notification settings - Fork 63
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
Treat compiler warnings as errors #781
Conversation
This'll need updates from NOAA-OWP/evapotranspiration#35 and NOAA-OWP/topmodel#47 |
PET update in PR #785 |
Topmodel update in that PR too |
Looks like there's another round of changes to Topmodel and CFE that'll be necessary to get this through. |
My mistake in finding it earlier was apparently in not building with |
The throw is intentionally *outside* the switch so that modifications to the enumerated values would still warn from -Wswitch, rathan the what a default: case would do.
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.
May want to wait for other reviewers before merging so everyone is fully aware of the change, but looks good to me!
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.
This looks good to me too!
I'm inclined to pick a core set of tests which we would like to run on latest, perhaps without |
I'd be open to adding something like that. I was actually planning to open a follow-on PR trial the switch to Ubuntu 22.04, knowing that it will fail everything right now. |
Let's open an issue for tracking a |
We should guard against integrating code that introduces new warnings. There are few enough existing warnings that it's worth just fixing them in the process.
Changes
Notes
Checklist
Target Environment support