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 209c2c5 commit 477e0f4Copy full SHA for 477e0f4
llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -797,6 +797,16 @@ if (MSVC)
797
798
# Enable warnings
799
if (LLVM_ENABLE_WARNINGS)
800
+ # Remove all -wd flag to enable warnings
801
+ if (NOT CLANG_CL)
802
+ set(msvc_warning_flags
803
+ # Promoted warnings.
804
+ -w14062 # Promote 'enumerator in switch of enum is not handled' to level 1 warning.
805
+
806
+ # Promoted warnings to errors.
807
+ -we4238 # Promote 'nonstandard extension used : class rvalue used as lvalue' to error.
808
+ )
809
+ endif(NOT CLANG_CL)
810
# Put /W4 in front of all the -we flags. cl.exe doesn't care, but for
811
# clang-cl having /W4 after the -we flags will re-enable the warnings
812
# disabled by -we.
0 commit comments