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 1b3e1d9 commit fdda535Copy full SHA for fdda535
llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -787,6 +787,16 @@ if (MSVC)
787
788
# Enable warnings
789
if (LLVM_ENABLE_WARNINGS)
790
+ # Remove all -wd flag to enable warnings
791
+ if (NOT CLANG_CL)
792
+ set(msvc_warning_flags
793
+ # Promoted warnings.
794
+ -w14062 # Promote 'enumerator in switch of enum is not handled' to level 1 warning.
795
+
796
+ # Promoted warnings to errors.
797
+ -we4238 # Promote 'nonstandard extension used : class rvalue used as lvalue' to error.
798
+ )
799
+ endif(NOT CLANG_CL)
800
# Put /W4 in front of all the -we flags. cl.exe doesn't care, but for
801
# clang-cl having /W4 after the -we flags will re-enable the warnings
802
# disabled by -we.
0 commit comments