-
-
Notifications
You must be signed in to change notification settings - Fork 668
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
COMP: Suppress some Wformat-nonliteral warnings #4616
Conversation
This should fix some of these warnings: https://open.cdash.org/viewBuildError.php?type=1&buildid=9572940 |
566c36d
to
b3ef504
Compare
b3ef504
to
5bf59e1
Compare
@seanm Ran clang-formatter: ./Utilities/Maintenance/clang-format.bash --clang-format /Users/johnsonhj/Dashboard/src/ITK/cmake-build-release/clang-format-Darwin --tracked |
6e75e99
to
47c9788
Compare
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.
Thanks for the initial patches. I made some minor updates to get it to pass CI.
Thanks for the touch-ups! |
Introduced ITK_GCC_PRAGMA_PUSH macro and friends, similiar to existing CLANG_PRAGMA_PUSH and friends, but that applies to both GCC and Clang, which share many warning flags. Added macros to suppess -Wformat-nonliteral warnings. Used them in a few places where the warnings are impossible to fix with ITK's current API. Made -Wfloat-equal apply to GCC now, in addition to Clang. Also added these macros as StatementMacros in the .clang-format file, so that clang-format formats them more nicely. Redid some formatting.
47c9788
to
001a1a7
Compare
This PR has removed CLANG_SUPPRESS_Wfloat_equal which was used in my code: |
Hmm, although it's in a public header, I didn't imaging anyone using it. I'll make a new MR to bring it back. Probably not until later today though, as I'm just recovering from a stomach bug. |
Introduced GCC_PRAGMA_PUSH macro and friends, similiar to existing CLANG_PRAGMA_PUSH and friends, but that applies to both GCC and Clang, which share many warning flags.
Added macros to suppess -Wformat-nonliteral warnings. Used them in a few places where the warnings are impossible to fix with ITK's current API.
Made -Wfloat-equal apply to GCC now, in addition to Clang.
Also added these macros as StatementMacros in the .clang-format file, so that clang-format formats them more nicely. Redid some formatting.
PR Checklist
Refer to the ITK Software Guide for
further development details if necessary.