[Bug c/35547] -Wparentheses not useful in its current form

manu at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Mar 12 15:06:00 GMT 2008



------- Comment #1 from manu at gcc dot gnu dot org  2008-03-12 15:05 -------
Bugzilla is not the appropriate place to seek opinions, gcc@gcc.gnu.org would
be a better place. This has been discussed already and there was some consensus
about splitting the warnings about precedence of operators out of
-Wparentheses.

http://gcc.gnu.org/ml/gcc/2007-12/msg00591.html
http://gcc.gnu.org/ml/gcc/2008-01/msg00134.html (continued).

My opinion is that since -Wparentheses appears in released versions, we should
keep its behaviour as much as possible, even if the name could have been
better. However, since many users are complaining about the precedence
warnings, I agree it would be nice to move them out of -Wparentheses and into
-Wprecedence, as proposed by Doug. I think this also should go into 4.3.1,
since the new warnings were introduced in 4.3.0 and the change is quite safe.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35547



More information about the Gcc-bugs mailing list