Incompatible pointer type warning in libc/reent
Corinna Vinschen
vinschen@redhat.com
Thu Aug 11 09:06:00 GMT 2016
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20160811/3033161e/attachment.sig>
More information about the Newlib
mailing list