Silencing C4141 warnings that were introduced en masse because __forceinline cannot...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 10 Sep 2015 12:53:40 +0000 (12:53 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 10 Sep 2015 12:53:40 +0000 (12:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247275 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/HandleLLVMOptions.cmake

index 405e8ac00daac7aea81b3e763227464b628ce9b1..e0bea6470fb22f56eec2a17881adf343e29187ca 100644 (file)
@@ -281,6 +281,7 @@ if( MSVC )
 
   set(msvc_warning_flags
     # Disabled warnings.
+    -wd4141 # Suppress ''modifier' : used more than once' (because of __forceinline combined with inline)
     -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'