[Bug c/45780] Warning for arithmetic operations involving C99 _Bool variable

2019-06-14 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45780 --- Comment #7 from Eric Gallager --- (In reply to Uroš Bizjak from comment #0) > > >> It can be done ultimately, but as a prerequisite, we should have > > >> warnings in -Wextra for all of > > >> > > >> ? boolvar++; ++boolvar; > > >> ? boolvar--

[Bug c/45780] Warning for arithmetic operations involving C99 _Bool variable

2018-09-14 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45780 Eric Gallager changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comment #6 f

[Bug c/45780] Warning for arithmetic operations involving C99 _Bool variable

2015-06-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45780 --- Comment #5 from Marek Polacek --- I think -Wbool-arith makes sense as a separate option. While -Wc90-c99-compat warns about any use of bool (in a declaration, cast, ...), -Wbool-arith would only warn about suspicious uses of boolean vars.

[Bug c/45780] Warning for arithmetic operations involving C99 _Bool variable

2015-05-28 Thread egall at gwmail dot gwu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45780 --- Comment #4 from Eric Gallager --- (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 s

[Bug c/45780] Warning for arithmetic operations involving C99 _Bool variable

2015-05-28 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45780 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c/45780] Warning for arithmetic operations involving C99 _Bool variable

2015-05-28 Thread egall at gwmail dot gwu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45780 Eric Gallager changed: What|Removed |Added CC||egall at gwmail dot gwu.edu --- Comment

[Bug c/45780] Warning for arithmetic operations involving C99 _Bool variable

2010-11-03 Thread ericb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45780 Eric Blake changed: What|Removed |Added CC||ericb at gcc dot gnu.org --- Comment #1 from

[Bug c/45780] Warning for arithmetic operations involving C99 _Bool variable

2010-09-24 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45780 Uros Bizjak changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|