Re: warning question

Jeff Johnston <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <CAOox84tNQEg48rJaa+hWxyK50Su2jzH=EbY5ySP79xAxQh3EUQ@mail.gmail.com>
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 <
[email protected]> 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
>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.