This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: -Wparentheses lumps too much together
- From: Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: "Doug Gregor" <doug dot gregor at gmail dot com>, jklowden at freetds dot org, gcc-patches at gcc dot gnu dot org, gcc at gnu dot org
- Date: 13 Jan 2008 09:47:02 -0600
- Subject: Re: -Wparentheses lumps too much together
- References: <20071219200235.GA21525@oak.schemamania.org> <24b520d20801111427r6081fec6k6a4a513e5022c492@mail.gmail.com> <m3hchj3gd0.fsf@localhost.localdomain>
Ian Lance Taylor <iant@google.com> writes:
| "Doug Gregor" <doug.gregor@gmail.com> writes:
|
| > To make this discussion a bit more concrete, the attached patch
| > removes this particular warning from -Wparentheses and puts it into a
| > new warning, -Wprecedence, that is not enabled by -Wall. This is
| > slightly more fine-grained than what -Wparentheses does now. Opinions?
|
| Personally, I think it should stay in -Wall. But I'm willing to hear
| other opinions.
I agree that the warning should stay in -Wall. However, we may
consider giving that group a more suggestive name, such as
-Wprecedence/-Wno-precedence (enabled by default).
-- Gaby