[PATCH] cpplib: -Wno-endif-labels
Joseph S. Myers
jsm28@cam.ac.uk
Sun Mar 24 04:55:00 GMT 2002
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
More information about the Gcc-patches
mailing list