CMake: [MSVC] Suppress C4551 'function call missing argument list'.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 17 Aug 2011 01:28:30 +0000 (01:28 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 17 Aug 2011 01:28:30 +0000 (01:28 +0000)
(void)static_func; it is used as idiom in llvm source tree to suppress "Unused static function" warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137800 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/HandleLLVMOptions.cmake

index d0427acbd5dc0959a03c141ba9e6c615d860dc0e..2731455a9ce0d26ad81073561a0f33b5ff80619c 100644 (file)
@@ -155,6 +155,7 @@ if( MSVC )
     -wd4351 # Suppress 'new behavior: elements of array 'array' will be default initialized'
     -wd4355 # Suppress ''this' : used in base member initializer list'
     -wd4503 # Suppress ''identifier' : decorated name length exceeded, name was truncated'
+    -wd4551 # Suppress 'function call missing argument list'
     -wd4624 # Suppress ''derived class' : destructor could not be generated because a base class destructor is inaccessible'
     -wd4715 # Suppress ''function' : not all control paths return a value'
     -wd4800 # Suppress ''type' : forcing value to bool 'true' or 'false' (performance warning)'