[cfe-commits] [PATCH] Enhance -Wtautological-compare
Joerg Sonnenberger
joerg at britannica.bec.de
Thu Mar 1 17:56:54 PST 2012
On Wed, Feb 29, 2012 at 11:36:05AM -0500, Xi Wang wrote:
> Clang doesn't issue warnings against tautological comparisons like
> (uchar < 0) and (uchar == -1). Such tautological comparisons are
> often logic bugs that break the error handling. Below are some
> recent examples.
Does this trigger for plain char on platforms with unsigned char?
Joerg
More information about the cfe-commits
mailing list