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

CI: Update Compiler Warnings, Enable Warnings as Errors #484

Merged
merged 33 commits into from
May 20, 2024

Conversation

gardner48
Copy link
Member

@gardner48 gardner48 commented May 16, 2024

@gardner48
Copy link
Member Author

CI failures should be resolved as related PRs are merged

drreynolds
drreynolds previously approved these changes May 16, 2024
drreynolds
drreynolds previously approved these changes May 16, 2024
@Steven-Roberts
Copy link
Collaborator

When building in single precision, -Wdouble-promotion causes tons of warnings from printf which can't be helped. Maybe it should be added conditionally.

@gardner48
Copy link
Member Author

When building in single precision, -Wdouble-promotion causes tons of warnings from printf which can't be helped. Maybe it should be added conditionally.

Is there a configuration where we could have this flag and avoid the warnings from printf?

@Steven-Roberts
Copy link
Collaborator

Is there a configuration where we could have this flag and avoid the warnings from printf?

When precision is set to extended, -Wdouble-promotion is most useful. It's also fine to have the flag when precision is double, but it's not going to identify any promotion warnings.

@gardner48
Copy link
Member Author

When precision is set to extended, -Wdouble-promotion is most useful. It's also fine to have the flag when precision is double, but it's not going to identify any promotion warnings.

Ah yes, the docs only talk about float to double promotion but it makes sense this would for double to long double promotion as well. I'll update this in a sec.

@gardner48 gardner48 marked this pull request as ready for review May 20, 2024 19:54
@balos1 balos1 added this to the SUNDIALS Next milestone May 20, 2024
@balos1 balos1 merged commit aee81f8 into develop May 20, 2024
20 of 21 checks passed
@balos1 balos1 deleted the ci/compiler-warnings branch May 20, 2024 23:42
gardner48 added a commit that referenced this pull request Jun 20, 2024
* Additional warning flags from #481, #482, and #483
* Remove `-Wno-deprecated-declarations`
* Enable warnings as errors in GitHub actions
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.

4 participants