[PATCH] PR 17946: warning message for suspect "a && MASK"

Thomas R. Truscott trt@cs.duke.edu
Tue Oct 12 16:27:00 GMT 2004


> > +         warning ("non-boolean constant in boolean context");
> 
> I think it's a bit difficult to infer from the warning that "&&" is
> the culprit.

I agree.  This is specific to TRUTH_ANDIF_EXPR, so the message could be:

    operand of && is a non-boolean constant



More information about the Gcc-patches mailing list