We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3447df commit af2f831Copy full SHA for af2f831
llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -765,6 +765,16 @@ if (MSVC)
765
766
# Enable warnings
767
if (LLVM_ENABLE_WARNINGS)
768
+ # Remove all -wd flag to enable warnings
769
+ if (NOT CLANG_CL)
770
+ set(msvc_warning_flags
771
+ # Promoted warnings.
772
+ -w14062 # Promote 'enumerator in switch of enum is not handled' to level 1 warning.
773
+
774
+ # Promoted warnings to errors.
775
+ -we4238 # Promote 'nonstandard extension used : class rvalue used as lvalue' to error.
776
+ )
777
+ endif(NOT CLANG_CL)
778
# Put /W4 in front of all the -we flags. cl.exe doesn't care, but for
779
# clang-cl having /W4 after the -we flags will re-enable the warnings
780
# disabled by -we.
0 commit comments