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"


* Thomas R. Truscott:

> 	if (cflag && CBAUD) {

> +         warning ("non-boolean constant in boolean context");

I think it's a bit difficult to infer from the warning that "&&" is
the culprit.  Maybe the warning could be reworded as "non-boolean
constant passed to boolean operator" or something similar?


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