[llvm-commits] [llvm] r137800 - /llvm/trunk/cmake/modules/HandleLLVMOptions.cmake

NAKAMURA Takumi geek4civic at gmail.com
Tue Aug 16 18:28:30 PDT 2011


Author: chapuni
Date: Tue Aug 16 20:28:30 2011
New Revision: 137800

URL: http://llvm.org/viewvc/llvm-project?rev=137800&view=rev
Log:
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.

Modified:
    llvm/trunk/cmake/modules/HandleLLVMOptions.cmake

Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=137800&r1=137799&r2=137800&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Tue Aug 16 20:28:30 2011
@@ -155,6 +155,7 @@
     -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)'





More information about the llvm-commits mailing list