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: [rfa] Add -Wswitch-enum


> On Sun, Mar 24, 2002 at 06:25:33PM -0500, Andrew Cagney wrote:
> 
>> * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
>> (Warning Options): Document -Wswitch-enum.
>> * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
>> -Wswitch.
>> (warn_switch_enum): Define variables.
>> * flags.h (warn_switch_enum): Declare variables.
>> * stmt.c (expand_end_case_type): When warn_switch_enum /
>> -Wswitch-enum, perform switch checks.
>> > * invoke.texi (Warning Options): Mention -Wswitch-enum.
>> 
>> * gcc.dg/Wswitch-enum.c: New test.
> 
> 
> Ok for mainline.

Thanks, it's in.

Now to figure out how to tweak stmt.c to add 
-Wswitch-{fallthrough,break} (hints welcome :-).

Andrew


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