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

Reid Kleckner reid at kleckner.net
Fri Jan 25 07:36:13 PST 2013


Author: rnk
Date: Fri Jan 25 09:36:13 2013
New Revision: 173455

URL: http://llvm.org/viewvc/llvm-project?rev=173455&view=rev
Log:
Disable MSVC's warning about noreturn destructors

This warning fires on:
  Operator::~Operator() {
    llvm_unreachable("should never destroy an Operator");
  }

That seems like a false positive.  I don't see any good way to silence
the warning here, so I'm disabling it.

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=173455&r1=173454&r2=173455&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Fri Jan 25 09:36:13 2013
@@ -169,6 +169,7 @@
     -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'
+    -wd4722 # Suppress ''function' : destructor never returns, potential memory leak'
     -wd4800 # Suppress ''type' : forcing value to bool 'true' or 'false' (performance warning)'
 
     # Promoted warnings.





More information about the llvm-commits mailing list