------- Comment #18 from manu at gcc dot gnu dot org 2009-05-18 23:13 ------- The following patch moves the warning out of Wextra. I haven't tested it, though.
Index: gcc/doc/invoke.texi =================================================================== --- gcc/doc/invoke.texi (revision 147679) +++ gcc/doc/invoke.texi (working copy) @@ -2806,7 +2806,6 @@ @gccoptlist{-Wclobbered @gol -Wempty-body @gol -Wignored-qualifiers @gol --Wlogical-op @gol -Wmissing-field-initializers @gol -Wmissing-parameter-type @r{(C only)} @gol -Wold-style-declaration @r{(C only)} @gol @@ -3793,8 +3792,7 @@ @opindex Wno-logical-op Warn about suspicious uses of logical operators in expressions. This includes using logical operators in contexts where a -bit-wise operator is likely to be expected. This warning is enabled by -...@option{-wextra}. +bit-wise operator is likely to be expected. @item -Waggregate-return @opindex Waggregate-return Index: gcc/c-opts.c =================================================================== --- gcc/c-opts.c (revision 147679) +++ gcc/c-opts.c (working copy) @@ -1073,8 +1073,6 @@ warn_override_init = extra_warnings; if (warn_ignored_qualifiers == -1) warn_ignored_qualifiers = extra_warnings; - if (warn_logical_op == -1) - warn_logical_op = extra_warnings; /* -Wpointer-sign is disabled by default, but it is enabled if any of -Wall or -pedantic are given. */ -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2009-05-18 21:10:16 |2009-05-18 23:13:34 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40172