warning question

Jeff Johnston jjohnstn@redhat.com
Thu Apr 20 15:12:41 GMT 2023


Hi Jennifer,

No, this was not known.  Looking at libc/sys/reent.h for
_REENT_THREAD_LOCAL, _REENT_EMERGENCY is set to
a char where it should be a ptr to char.

-- Jeff J.

On Thu, Apr 20, 2023 at 10:45 AM Jennifer Averett <
Jennifer.Averett@oarcorp.com> wrote:

> I get the warning listed below when building with the config options:
>
>    --enable-newlib-iconv-encodings=big5,cp775,cp850,cp852,cp855,\
> cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,\
> iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,\
> iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,\
> iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,\
> ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,\
> utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,\
> win_1253,win_1254,win_1255,win_1256,win_1257,win_1258\
>     --enable-newlib-reent-thread-local \
>     --enable-newlib-io-c99-formats \
>     --enable-threads \
>     --target= aarch64-rtems6\
>
>   CC       libc/stdio/libc_a-vdprintf.o
> ../../../newlib-cygwin/newlib/libc/stdio/tmpnam.c: In function '_tmpnam_r':
> ../../../newlib-cygwin/newlib/libc/stdio/tmpnam.c:135:14: warning:
> assignment to 'char *' from 'char' makes pointer from integer without a
> cast [-Wint-conversion]
>   135 |       result = _REENT_EMERGENCY(p);
>       |              ^
>
>   CC       libc/signal/libc_a-psignal.o
> ../../../../newlib-cygwin/newlib/libc/stdio/tmpnam.c: In function
> '_tmpnam_r':
> ../../../../newlib-cygwin/newlib/libc/stdio/tmpnam.c:135:14: warning:
> assignment to 'char *' from 'char' makes pointer from integer without a
> cast [-Wint-conversion]
>   135 |       result = _REENT_EMERGENCY(p);
>       |              ^
>
>
> Just wanted to know if this was a known issue.
>
> Thanks
> Jennifer Averett
>
>
>
>


More information about the Newlib mailing list