[Bug c/45780] Warning for arithmetic operations involving C99 _Bool variable
egall at gwmail dot gwu.edu
Fri May 29 02:29:00 GMT 2015
--- Comment #4 from Eric Gallager <egall at gwmail dot gwu.edu> ---
(In reply to Marek Polacek from comment #3)
> (In reply to Eric Gallager from comment #2)
> > The -Wc90-c99-compat that made it into gcc5 currently warns about
> > any usage of bool whatsoever, not just the specific usages of bool
> > listed in this bug...
> Right, that was the point of it.
...so is this bug worth keeping open then? It'd seem kinda redundant to me for
extra, more-specific warnings about bools to be placed in -Wc90-c99-compat (as
was originally proposed), when the flag already prints the more-generalized
warnings that it currently does. Or would they get their own separate
-Wbool-arith option? If so, what would happen when a user specifies both a
hypothetical -Wbool-arith flag along with -Wc90-c99-compat at the same time?
I'm just kinda worried that such a situation could lead to duplicated and/or
More information about the Gcc-bugs