aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-06-07 21:34:15 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-06-07 21:34:15 +0000
commitc3ab9ce3c9d1e4ae31aa4c08ef6966085f1d2679 (patch)
tree4e0828de3ae778f03bc61a32bec439deb8cf4cc6 /cmake
parentbdcae3825633082774ec702fd05cc556ed683ca6 (diff)
downloadexternal_llvm-c3ab9ce3c9d1e4ae31aa4c08ef6966085f1d2679.zip
external_llvm-c3ab9ce3c9d1e4ae31aa4c08ef6966085f1d2679.tar.gz
external_llvm-c3ab9ce3c9d1e4ae31aa4c08ef6966085f1d2679.tar.bz2
[CMake] Adjust MSVC warnings.
Remove /Wall from LLVM_ENABLE_WARNINGS (it's useless) and promote 4239 to a level 1 warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/HandleLLVMOptions.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake
index 3781e7b..fbb5f78 100644
--- a/cmake/modules/HandleLLVMOptions.cmake
+++ b/cmake/modules/HandleLLVMOptions.cmake
@@ -150,6 +150,7 @@ if( MSVC )
-D_SCL_SECURE_NO_DEPRECATE
-D_SCL_SECURE_NO_WARNINGS
+ # Disabled warnings.
-wd4146 # Suppress 'unary minus operator applied to unsigned type, result still unsigned'
-wd4180 # Suppress 'qualifier applied to function type has no meaning; ignored'
-wd4224 # Suppress 'nonstandard extension used : formal parameter 'identifier' was previously defined as a type'
@@ -167,12 +168,15 @@ if( MSVC )
-wd4800 # Suppress ''type' : forcing value to bool 'true' or 'false' (performance warning)'
-wd4065 # Suppress 'switch statement contains 'default' but no 'case' labels'
-wd4181 # Suppress 'qualifier applied to reference type; ignored'
- -w14062 # Promote "enumerator in switch of enum is not handled" to level 1 warning.
+
+ # Promoted warnings.
+ -w14062 # Promote 'enumerator in switch of enum is not handled' to level 1 warning.
+ -w14239 # Promote 'nonstandard extension used : 'token' : conversion from 'type' to 'type'' to level 1 warning.
)
# Enable warnings
if (LLVM_ENABLE_WARNINGS)
- add_llvm_definitions( /W4 /Wall )
+ add_llvm_definitions( /W4 )
if (LLVM_ENABLE_PEDANTIC)
# No MSVC equivalent available
endif (LLVM_ENABLE_PEDANTIC)