This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/62270] -Wlogical-not-parentheses warnings
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 06 Sep 2014 08:22:13 +0000
- Subject: [Bug fortran/62270] -Wlogical-not-parentheses warnings
- Auto-submitted: auto-generated
- References: <bug-62270-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62270
--- Comment #10 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to David Binderman from comment #9)
> Is a brand new warning ready for the prime time of -Wall ?
The warning existed for some time already before it's been added to -Wall.
> It might be a tad more conservative to implement the proposed warning
> and not include it in -Wall until some time has elapsed and some user
> feedback has been provided.
That's what happened. And I believe few people noticed the new warning.
> For instance, what effect does new flag -Wlogical-not-parentheses have
> on building major packages like the Linux kernel, or Fedora,
> or others ?
Some of them won't build because of -Werror, I suppose, but that happens every
year when we do the mass rebuilds; -Wall isn't guaranteed to be consistent from
release to release. It should not have almost any false positives, and there's
always the option to use -Wno-logical-not-parentheses or to wrap LHS in parens
to suppress the warning.