[patch] newlib/libc/locale/lmessages.c:52: warning: excess elements in struct initializer

Corinna Vinschen vinschen@redhat.com
Wed Jul 20 14:15:00 GMT 2011


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



More information about the Newlib mailing list