[cfe-commits] [PATCH] Enhance -Wtautological-compare

Joerg Sonnenberger joerg at britannica.bec.de
Fri Mar 2 07:18:51 PST 2012


On Thu, Mar 01, 2012 at 11:53:37PM -0500, Xi Wang wrote:
> On Mar 1, 2012, at 8:56 PM, Joerg Sonnenberger wrote:
> > Does this trigger for plain char on platforms with unsigned char?
> 
> It warns against (char < 0) with -funsigned-char.

I think that's bad since such conditionals are used as sanity checks,
e.g. by some implementations of ctype.h.

Joerg



More information about the cfe-commits mailing list