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.

Reply via email to