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: [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


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