From: NAKAMURA Takumi Date: Wed, 17 Aug 2011 01:28:30 +0000 (+0000) Subject: CMake: [MSVC] Suppress C4551 'function call missing argument list'. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a69179d7689bf302f3c7e04ee83c460e69b96b94;p=oota-llvm.git CMake: [MSVC] Suppress C4551 'function call missing argument list'. (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 --- diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index d0427acbd5d..2731455a9ce 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -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)'