This is the mail archive of the gcc-patches@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]

Re: -Wparentheses lumps too much together


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


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