This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/62270] -Wlogical-not-parentheses warnings


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]