Disabling an MSVC warning ('var' : definition from the for loop is ignored; the defin...
authorAaron Ballman <aaron@aaronballman.com>
Mon, 18 Aug 2014 14:54:22 +0000 (14:54 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 18 Aug 2014 14:54:22 +0000 (14:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215895 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/HandleLLVMOptions.cmake

index 8258512c42a0c3b6f4266b2cdf6dc4d11386bdfb..b872864eb6b9d7dd42dc4c02244a73acbf11adc5 100644 (file)
@@ -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'