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

Check for compile warnings in CI #1685

Merged
merged 3 commits into from
Jul 15, 2024

Conversation

baperry2
Copy link
Collaborator

I noticed several compiler warnings have crept into the code. This PR adds a check in ci.yml that will cause a failure if there are any compiler warnings, and fixes several warnings such that that check passes.

Similar code should be added to other workflows, but holding off until confirming this is something we want. The check is lifted directly from PeleC, so it was probably in ERF but taken out at some point. I do think requiring that PRs don't introduce warnings is a good thing and helps keep the code clean for both users and developers, but IDK if this is the best way and open to discussion on the topic.

@baperry2 baperry2 requested a review from AMLattanzi July 12, 2024 23:23
@asalmgren asalmgren merged commit 0277aff into erf-model:development Jul 15, 2024
18 checks passed
@baperry2 baperry2 deleted the ci-fail-on-warn branch July 15, 2024 16:30
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.

2 participants