This is an archive of the discontinued LLVM Phabricator instance.

[cmake] Remove MSVC C4800 override
ClosedPublic

Authored by RKSimon on May 9 2019, 6:44 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.May 9 2019, 6:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2019, 6:44 AM
Herald added a subscriber: mgorny. · View Herald Transcript
rnk added a comment.May 9 2019, 1:32 PM

lgtm

I confirmed that this hasn't been in the default warning set for 2017, which these days I guess is the oldest we support. Feel free to remove other off-by-default warnings, I don't think we need to proactively defend against users adding them to their own cflags, or using old msvc versions.

rnk accepted this revision.May 9 2019, 1:45 PM
This revision is now accepted and ready to land.May 9 2019, 1:45 PM
This revision was automatically updated to reflect the committed changes.