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

COMP: Locally ignore Clang -Wmismatched-tags warnings in ImageRegion #4455

Merged

Conversation

N-Dekker
Copy link
Contributor

@N-Dekker N-Dekker commented Feb 9, 2024

After pull request #4367 commit 72aa9a6 (ENH: ImageRegion support C++17 structured binding), a few unimportant -Wmismatched-tags warnings appeared from Mac10.13-AppleClang-rel-x86_64, at
https://open.cdash.org/build/9256915 as was reported to me by mail, from Dženan Zukić (@dzenanz) and Sean McBride (@seanm).

This commit locally disables those warnings, following https://github.com/Naios/continuable/blob/121265df7123cf672ea8db917eaca2d0fbd9aef5/include/continuable/continuable-result.hpp#L291-L308 by Denis Blank (@Naios).

After pull request InsightSoftwareConsortium#4367
commit 72aa9a6 (ENH: `ImageRegion` support
C++17 structured binding), a few unimportant `-Wmismatched-tags` warnings
appeared from Mac10.13-AppleClang-rel-x86_64, at
https://open.cdash.org/build/9256915 as was reported to me by mail, from Dženan
Zukić and Sean McBride.

This commit locally disables those warnings, following
https://github.com/Naios/continuable/blob/121265df7123cf672ea8db917eaca2d0fbd9aef5/include/continuable/continuable-result.hpp#L291-L308
by Denis Blank.
@github-actions github-actions bot added type:Compiler Compiler support or related warnings area:Core Issues affecting the Core module labels Feb 9, 2024
@dzenanz dzenanz requested a review from seanm February 9, 2024 16:22
@dzenanz
Copy link
Member

dzenanz commented Feb 9, 2024

@seanm does this take care of the warnings?

@seanm
Copy link
Contributor

seanm commented Feb 9, 2024

Ah, just saw this now. I suppose it's unnecessary when changing the bots to use ITK_CXX_WARNING_FLAGS instead.

But merging it too would be harmless. Up to you.

@N-Dekker
Copy link
Contributor Author

N-Dekker commented Feb 9, 2024

I suppose it's unnecessary when changing the bots to use ITK_CXX_WARNING_FLAGS instead.

Thanks @seanm, but if this PR is entirely unnecessary, I'd rather just abandon it. Could it possibly still be useful to other ITK users?

@seanm
Copy link
Contributor

seanm commented Feb 9, 2024

Could it possibly still be useful to other ITK users?

I suppose it could. After all, it's ITK itself turning on -Wall (of which -Wmismatched-tags is part).

@N-Dekker N-Dekker marked this pull request as ready for review February 9, 2024 22:19
@N-Dekker
Copy link
Contributor Author

N-Dekker commented Feb 9, 2024

/azp run ITK.Windows

@dzenanz dzenanz merged commit 9a35c2f into InsightSoftwareConsortium:master Feb 12, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Core Issues affecting the Core module type:Compiler Compiler support or related warnings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants