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

cmake: enable more warnings for consistency across platforms #1990

Merged
merged 6 commits into from
Aug 15, 2024

Conversation

JakeOShannessy
Copy link
Contributor

When STRICT_CHECKS is ON this enables many more checks.

This PR also make minor changes to address these. The most significant of these is -Wshadow (previously I used shaddowed variables a fair bit). Sufficing _local or _arg used when there is a global of the same name.

This depends on #1987, so shouldn't be considered until that PR is resolved.

This moves functions for reading CAD files into shared.
When compiling under strict mode (STRICT_CHECKS=ON) enable more checks.
Disable some checks that currently result in too many errors.

This also addresses two warnings.
@JakeOShannessy
Copy link
Contributor Author

JakeOShannessy commented Aug 14, 2024

NB: STRICT_CHECKS isn't enabled by default in GitHub actions.

@JakeOShannessy JakeOShannessy changed the title cmake: enable more warnings for consitency across platforms cmake: enable more warnings for consistency across platforms Aug 14, 2024
@gforney gforney merged commit df2abd4 into firemodels:master Aug 15, 2024
17 checks passed
@JakeOShannessy JakeOShannessy deleted the more-warnings branch August 15, 2024 17:22
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