Enable W4 warnings by default for MSVC builds
authorAndrew Kaylor <andrew.kaylor@intel.com>
Tue, 7 Apr 2015 19:01:01 +0000 (19:01 +0000)
committerAndrew Kaylor <andrew.kaylor@intel.com>
Tue, 7 Apr 2015 19:01:01 +0000 (19:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234343 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 931e28e4efc7d51b1ba63a48ce57fea5eb5c9baa..65d980253b03255d2c3c9618be8ab50aca7ef162 100644 (file)
@@ -233,14 +233,7 @@ list(REMOVE_DUPLICATES LLVM_TARGETS_TO_BUILD)
 include(AddLLVMDefinitions)
 
 option(LLVM_ENABLE_PIC "Build Position-Independent Code" ON)
-
-# MSVC has a gazillion warnings with this.
-if( MSVC )
-  option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." OFF)
-else()
-  option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON)
-endif()
-
+option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON)
 option(LLVM_ENABLE_MODULES "Compile with C++ modules enabled." OFF)
 option(LLVM_ENABLE_CXX1Y "Compile with C++1y enabled." OFF)
 option(LLVM_ENABLE_LIBCXX "Use libc++ if available." OFF)