-
Notifications
You must be signed in to change notification settings - Fork 967
Fix off-by-one error in Compiler Warnings by compiler version #5215
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
Fix off-by-one error in Compiler Warnings by compiler version #5215
Conversation
@Rageking8 : Thanks for your contribution! The author(s) have been notified to review your proposed change. |
Learn Build status updates of commit 11a2bea: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
Can you review the proposed changes? Important: When the changes are ready for publication, adding a #label:"aq-pr-triaged" |
@Rageking8, it's Monday; help me out with your thinking here :-) |
In https://learn.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level?view=msvc-170 under
So for warnings introduced in 19.43, if you put the version as 19.43, those warnings will still show, with warnings introduced in 19.44 and later silenced. Hopefully I interpreted that right, and all subsequent ones follow that pattern of 1 version older. |
I think you are right. Good catch! |
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.
Thank you for fixing this sneaky error.
#sign-off |
Took me some time to work out which was right as well. Might be due to the "whitelist" nature of the flag |
To suppress warnings in the target version and all later versions, the version specified in
/Wv
must be the next older one.