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: Incompatible pointer type warning in libc/reent


Please, don't top-post.  It's really hard to keep the context readable
this way.  Thank you.

On Aug 11 10:55, Sebastian Huber wrote:
> On 10/08/16 19:10, Yaakov Selkowitz wrote:
> > While building Cygwin with -Werror in CFLAGS:
> > 
> > newlib/libc/reent/impure.c:23:62: error: initialization from
> > incompatible pointer type [-Werror=incompatible-pointer-types]
> >  static struct _reent __ATTRIBUTE_IMPURE_DATA__ impure_data =
> > _REENT_INIT (impure_data);
> >                                                               ^
> > newlib/libc/reent/impure.c:23:62: note: (near initialization for
> > ‘impure_data._locale’)
>
> Maybe this fixes it:
> [...]

The fix is already in the topic/locales branch, commit 480b0c6.

> Who defines struct _thr_locale_t? I didn't find a definition in the Newlib
> sources.

Please see the threads starting at

  https://sourceware.org/ml/newlib/2016/msg00879.html

and

  https://sourceware.org/ml/newlib/2016/msg00899.html 


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


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