This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


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