"Fixed" Command line warning D9025 : overriding '/W3' with '/W4' #1
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.
Hi
/W3 is part of CMake's default compiler flags.
Adding /W4 the way you did won't overwrite it.
All samples are being built with /W3 instead of /W4 and /WX.
Appveyor will break with this PR now, because of the two warnings that are now treated as errors (/W4 and /WX are now working)
Your module has the same issue with /GR vs. /GR-
The former is the default and must be removed first.
The module should probably start things off with something similar than my foreach(WARN_FLAG) loop to remove all default flags before adding new ones.