This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] cpplib: -Wno-endif-labels
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Cc: Zack Weinberg <zack at codesourcery dot com>, Phil Edwards <phil at jaj dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 24 Mar 2002 12:55:08 +0000 (GMT)
- Subject: Re: [PATCH] cpplib: -Wno-endif-labels
On Sun, 24 Mar 2002, Neil Booth wrote:
> Zack Weinberg wrote:-
>
> > By analogy with -Wno-long-long, it shouldn't. I can easily see a
> > situation where someone needed all the mandatory diagnostics except
> > this one (which was triggered by some third party library header, say,
> > that couldn't be changed).
>
> I agree, so I've applied this.
>
> Neil.
>
> * cppinit.c (cpp_handle_option): Set warn_endif_labels if
> -pedantic here...
> (cpp_post_options): ... not here.
There ought, of course, to be testcases for what "-pedantic
-Wno-endif-labels" and "-Wno-endif-labels -pedantic" do, given that this
is a deliberate choice of compiler behaviour.
--
Joseph S. Myers
jsm28@cam.ac.uk