Silence all C4592 warnings with MSVC 2015 Update 1. This warning produces false posit...
[oota-llvm.git] / cmake / modules / HandleLLVMOptions.cmake
index 9e4c4c5078aff58fef05b9140dada7b71efc5064..6c3109c4de76ff48fe8dbb823645402a78c2b324 100644 (file)
@@ -317,6 +317,9 @@ if( MSVC )
     -wd4204 # Suppress 'nonstandard extension used : non-constant aggregate initializer'
     -wd4577 # Suppress 'noexcept used with no exception handling mode specified; termination on exception is not guaranteed'
     -wd4091 # Suppress 'typedef: ignored on left of '' when no variable is declared'
+        # C4592 is disabled because of false positives in Visual Studio 2015
+        # Update 1. Re-evaluate the usefulness of this diagnostic with Update 2.
+    -wd4592 # Suppress ''var': symbol will be dynamically initialized (implementation limitation)
 
        # Ideally, we'd like this warning to be enabled, but MSVC 2013 doesn't
        # support the 'aligned' attribute in the way that clang sources requires (for