This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> > +         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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]