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: C99 pedantry patch


On Fri, Jun 16, 2000 at 08:43:26PM +0100, Joseph S. Myers wrote:
> (An alternative approach to some of the changes where the same warning
> may be either a plain warning, or a pedwarn in C99, would be a
> pedwarn_c99 or similar function, which does pedwarn () if flag_isoc99
> and warning () otherwise.)

I've done this.

> 	* c-decl.c (grokdeclarator): Don't warn about `long long' in C99.
> 	Make warnings about implicit int be pedwarns in C99.  Don't warn
> 	about duplicate type qualifiers in C99.
> 	(start_function): Make warning about implict int return type be a
> 	pedwarn in C99.
> 	* c-lex.c (yylex): Don't warn about `long long' in C99.
> 	* c-typeck.c (c_expand_return): In C99, always pedwarn about
> 	`return' with no value in function returning non-void.

Applied, thanks.


r~

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