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: Wmissing-parameter-type (PR7651 Define -Wextra strictly in terms of other warning flags)


On Wed, 19 Dec 2006, DJ Delorie wrote:

> It's not a new warning, but it is a new *option*.  You'll need test
> cases that test various cases:
> 
> 1. No option specified
> 2. Option on (warn), option off (no warn)
> 3. Option on, marked as an error, marked as a warning overriding -Werror
> 
> etc.

-Wextra enabling warning, -Wextra -Wno-new-option disabling the warning.  
Wpointer-sign*.c are examples where that sort of thing is tested.

Yes, I'd like such things as dg-pedwarn, dg-pedantic-pedwarn to avoid some 
triples of tests I've added in the past (default, -pedantic, 
-pedantic-errors).  But for now we work with the testsuite infrastructure 
we have.

-- 
Joseph S. Myers
joseph@codesourcery.com


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