This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR 17946: warning message for suspect "a && MASK"
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: "Thomas R. Truscott" <trt at cs dot duke dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 12 Oct 2004 17:34:44 +0200
- Subject: Re: [PATCH] PR 17946: warning message for suspect "a && MASK"
- References: <200410121421.i9CELxGb021561@eenie.cs.duke.edu>
* 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?