[PATCH] D66046: Add new tautological compare warning for bitwise-or with a non-zero constant

Richard Trieu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 21 20:04:04 PDT 2019


rtrieu added a comment.

In D66046#1717229 <https://reviews.llvm.org/D66046#1717229>, @thakis wrote:

> Mr Trieu, what do you think about adding some or all of the Wtautological-compare warnings to Wall


I thought -Wtautological-compare was already part of -Wall, so I'm all for adding it.  I made a patch https://reviews.llvm.org/D69292 with the proposed move to -Wall so it will have some more visibility.   I'll be out for the conference and can commit it afterwards if no issues are brought up.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66046/new/

https://reviews.llvm.org/D66046





More information about the cfe-commits mailing list