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]

Re: Making some warnings less obnoxious


On Mon, Oct 22, 2001 at 09:28:09PM -0700, Zack Weinberg wrote:
> 	* c-typeck.c (constructor_designated): New local flag.
> 	(struct constructor_stack): Add "designated" field to match.
> 	(start_init): Clear it.  
> 	(really_start_incremental_init, push_init_level): Push and
> 	clear it.
> 	(pop_init_level): Pop it.
> 	(set_designator): Set it.
> 
> 	(pop_init_level): Suppress "missing initializer" warnings if
> 	constructor_designated is true.
> 	(process_init_element): Suppress warning about union
> 	initialization under traditional C, if constructor_designated
> 	is true.
> 
> 	* gcc.dg/20011021-1.c: New test case.

Ok.


r~


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