Skip to content

Check positive warning options - #1279

Merged
Carson Radtke (carsonRadtke) merged 1 commit into
microsoft:mainfrom
mymedia2:patch-4
Sep 24, 2026
Merged

Carson Radtke (carsonRadtke) merged 1 commit into
microsoft:mainfrom
mymedia2:patch-4

Conversation

@mymedia2

Copy link
Copy Markdown
Contributor

GCC or other compatible compiler always accepts unknown -Wno-* flags; thus, check_cxx_compiler_flag() never fails on them and is meaningless. There are two options to fix this: either remove the checks altogether, or check for positive -W* flags and set the desired -Wno-* ones.

This commit chooses the second approach.

GCC or other compatible compiler always accepts unknown -Wno-* flags;
thus, check_cxx_compiler_flag() never fails on them and is meaningless.
There are two options to fix this: either remove the checks altogether,
or check for positive -W flags and set the desired -Wno-* ones.

This commit chooses the second approach.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the improvements!

@carsonRadtke
Carson Radtke (carsonRadtke) merged commit 7f7bc59 into microsoft:main Sep 24, 2026
89 checks passed
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.

2 participants