[PATCH] D61730: [cmake] Remove MSVC C4800 override

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 9 06:44:58 PDT 2019


RKSimon created this revision.
RKSimon added reviewers: gbedwell, zturner, andrew.w.kaylor, rnk.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.

Remove C4800 : ''type' : forcing value to bool 'true' or 'false' (performance warning)' from the list of forced disabled warnings.

I'm not seeing any regressions in VS2017/VS2019 llvm/clang builds from removing this. I don't have VS2015 at hand to test against.

Hopefully we can remove more of these overrides as some appear to be ancient and targetted against older versions of MSVC.


Repository:
  rL LLVM

https://reviews.llvm.org/D61730

Files:
  cmake/modules/HandleLLVMOptions.cmake


Index: cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- cmake/modules/HandleLLVMOptions.cmake
+++ cmake/modules/HandleLLVMOptions.cmake
@@ -520,7 +520,6 @@
       -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)'
       -wd4100 # Suppress 'unreferenced formal parameter'
       -wd4127 # Suppress 'conditional expression is constant'
       -wd4512 # Suppress 'assignment operator could not be generated'


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61730.198810.patch
Type: text/x-patch
Size: 824 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190509/6c681c37/attachment.bin>


More information about the llvm-commits mailing list