GNU -Wall Warning Reduction#1049
Closed
scrasmussen wants to merge 6 commits into
Closed
Conversation
mdtoyNOAA
approved these changes
Jan 18, 2024
mzhangw
approved these changes
Jan 18, 2024
Contributor
SamuelTrahanNOAA
left a comment
There was a problem hiding this comment.
All good changes. A note on this one. Perhaps the GNU compiler is not up-to-date, but:
Warn when a source code line will be truncated
The line length limit in Fortran 2023 is ten thousand characters (10,000 characters). For continued lines (using &) the limit is one million characters (1,000,000 characters). In other words, there's probably nowhere in the UFS code that passes the Fortran line length limits. Only the most complicated cpp-generated code risks hitting the line length limits. Alas, we are not using 2030s-era compilers, so we are stuck with the Fortran 2018 limits.
Qingfu-Liu
approved these changes
Jan 30, 2024
c27ffe3 to
64d33d5
Compare
Collaborator
|
This should also be targeted at ufs-community:ufs/dev |
…nt at (1) [-Wampersand]'
…ed at (1) not set [-Wreturn-type]"
64d33d5 to
add0661
Compare
Member
Author
|
Closing because PR #1105 replaces it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reducing GNU
-Wallwarnings per issue #495.Commits fix the following warning flags implied in
-Wall