summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-08-18 14:54:22 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-08-18 14:54:22 +0000
commitdabe780912df3cef4f31fd2e984da3efc26fbd91 (patch)
tree1f2279ce8cc5531723ecf0f506697530aa376d88 /llvm/cmake/modules
parent1c9e0646b98e89f7bae06121a2cb530ec21a323e (diff)
downloadbcm5719-llvm-dabe780912df3cef4f31fd2e984da3efc26fbd91.tar.gz
bcm5719-llvm-dabe780912df3cef4f31fd2e984da3efc26fbd91.zip
Disabling an MSVC warning ('var' : definition from the for loop is ignored; the definition from the enclosing scope is used) which will trigger false positives more than true positives.
llvm-svn: 215895
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/HandleLLVMOptions.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 8258512c42a..b872864eb6b 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -240,6 +240,7 @@ if( MSVC )
-wd4146 # Suppress 'unary minus operator applied to unsigned type, result still unsigned'
-wd4180 # Suppress 'qualifier applied to function type has no meaning; ignored'
-wd4244 # Suppress ''argument' : conversion from 'type1' to 'type2', possible loss of data'
+ -wd4258 # Suppress ''var' : definition from the for loop is ignored; the definition from the enclosing scope is used'
-wd4267 # Suppress ''var' : conversion from 'size_t' to 'type', possible loss of data'
-wd4291 # Suppress ''declaration' : no matching operator delete found; memory will not be freed if initialization throws an exception'
-wd4345 # Suppress 'behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized'
OpenPOWER on IntegriCloud