COMP: Suppress GCC -Wmaybe-uninitialized in Eigen3 SelfadjointMatrixVector#5953
Merged
hjmjohnson merged 1 commit intoInsightSoftwareConsortium:mainfrom Mar 16, 2026
Conversation
…ector GCC on aarch64 (ARM) emits a false-positive -Wmaybe-uninitialized warning at line 224 of SelfadjointMatrixVector.h. The dashboard script (itk_common.cmake) treats any build warning as CI failure. Add targeted GCC diagnostic pragmas to suppress the warning in this file only, scoped to GCC (not Clang) via __GNUC__ / __clang__ guards. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
Author
|
Several attempts at suppressing build warnings were unsuccessful in This approach seems to work. |
dzenanz
approved these changes
Mar 16, 2026
thewtex
approved these changes
Mar 16, 2026
Member
|
@hjmjohnson thanks for keeping the CI green 💚 |
1e27859
into
InsightSoftwareConsortium:main
15 of 18 checks passed
This was referenced Mar 16, 2026
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.
Summary
-Wmaybe-uninitializedwarnings in Eigen3'sSelfadjointMatrixVector.hon ARM (aarch64)#pragma GCC diagnostic push/popscoped to the file, guarded by__GNUC__and!__clang__Test plan
-Wmaybe-uninitializedwarnings from this file🤖 Generated with Claude Code