diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2014-03-25 08:42:49 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2014-03-25 08:42:49 +0000 |
commit | d8ceb275c2d3c0f09cb3bf814ad32c23deb93e10 (patch) | |
tree | eafac143ef74ca537b137dbbab8ee589560a4226 /cmake | |
parent | 4fd5cd06c815724fa410c0bea276d919dea868c3 (diff) | |
download | llvm-d8ceb275c2d3c0f09cb3bf814ad32c23deb93e10.tar.gz llvm-d8ceb275c2d3c0f09cb3bf814ad32c23deb93e10.tar.bz2 llvm-d8ceb275c2d3c0f09cb3bf814ad32c23deb93e10.tar.xz |
Disable Visual C++ warning 4722 about aborting a destructor,
it has no value for us.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/HandleLLVMOptions.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index cd9773beb9..99657ce117 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -256,13 +256,14 @@ if( MSVC ) -wd4180 # Suppress 'qualifier applied to function type has no meaning; ignored' -wd4244 # Suppress ''argument' : conversion from 'type1' to 'type2', possible loss of data' -wd4267 # Suppress ''var' : conversion from 'size_t' to 'type', possible loss of data' + -wd4291 # Suppress ''declaration' : no matching operator delete found; memory will not be freed if initialization throws an exception' -wd4345 # Suppress 'behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized' -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' -wd4624 # Suppress ''derived class' : destructor could not be generated because a base class destructor is inaccessible' + -wd4722 # Suppress 'function' : destructor never returns, potential memory leak -wd4800 # Suppress ''type' : forcing value to bool 'true' or 'false' (performance warning)' - -wd4291 # Suppress ''declaration' : no matching operator delete found; memory will not be freed if initialization throws an exception' # Promoted warnings. -w14062 # Promote 'enumerator in switch of enum is not handled' to level 1 warning. |