This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [patch] newlib/libc/locale/lmessages.c:52: warning: excess elements in struct initializer
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Tue, 19 Jul 2011 21:25:38 +0200
- Subject: Re: [patch] newlib/libc/locale/lmessages.c:52: warning: excess elements in struct initializer
- References: <4E25B89C.2020905@rtems.org>
- Reply-to: newlib at sourceware dot org
On Jul 19 19:02, Ralf Corsepius wrote:
> Hi,
>
> I am facing the warning above.
>
> AFAICT, the origin is an inconsistency on how
> __HAVE_LOCALE_INFO_EXTENDED__ is being used in
> lmessages.c and lmessages.h:
> [...]
> => AFAIU, one of these __HAVE_LOCALE_INFO_EXTENDED__ is misplaced
> and should be moved.
>
> My guess is the define in lmessages.c should be "moved up", before
> codeset. Patch enclosed below.
>
> Ralf
> 2011-07-19 Ralf Cors??pius <ralf.corsepius@rtems.org>
>
> * libc/locale/lmessages.c (_C_messages_locale):
> Move __HAVE_LOCALE_INFO_EXTENDED__ before codeset.
Thanks, I applied it with a minor change in comma setting.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat