[PATCH] Kill warnings in gconv.h
Andreas Jaeger
aj@suse.de
Thu May 4 09:48:00 GMT 2000
>>>>> Jakub Jelinek writes:
> Hi!
> Including gconv.h when gcc -pedantic spits out unneeded warnings.
IMHO -pedantic makes only sense if you also specify -ansi - and since
gconv.h is not part of ISO C, we don't really need to care.
Andreas
> This patch kills them.
> 2000-05-04 Jakub Jelinek <jakub@redhat.com>
> * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
> happy.
> --- libc/iconv/gconv.h.jj Thu Apr 13 09:25:30 2000
> +++ libc/iconv/gconv.h Thu May 4 18:17:30 2000
> @@ -124,7 +124,7 @@ typedef struct __gconv_info
> {
> size_t __nsteps;
> struct __gconv_step *__steps;
> - struct __gconv_step_data __data[0];
> + __extension__ struct __gconv_step_data __data[0];
> } *__gconv_t;
> #endif /* gconv.h */
> Jakub
--
Andreas Jaeger
SuSE Labs aj@suse.de
More information about the Libc-hacker
mailing list