diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-01-25 15:36:13 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-01-25 15:36:13 +0000 |
commit | 5b7c05716791adba09bb342f10c5af2c702c675d (patch) | |
tree | 46e1865843f7eb00b0e881a68778d3b99b2bddc0 /cmake | |
parent | f86c9321fc8088a021598df0265c5fd00ab4170d (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173455 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/HandleLLVMOptions.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index 711fe967373..7b0f4641e1e 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -169,6 +169,7 @@ if( MSVC ) -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. |