public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* warning question
@ 2023-04-20 14:44 Jennifer Averett
  2023-04-20 15:12 ` Jeff Johnston
  0 siblings, 1 reply; 2+ messages in thread
From: Jennifer Averett @ 2023-04-20 14:44 UTC (permalink / raw)
  To: newlib

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: warning question
  2023-04-20 14:44 warning question Jennifer Averett
@ 2023-04-20 15:12 ` Jeff Johnston
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Johnston @ 2023-04-20 15:12 UTC (permalink / raw)
  To: Jennifer Averett; +Cc: newlib

[-- Attachment #1: Type: text/plain, Size: 1871 bytes --]

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
>
>
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-20 15:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-20 14:44 warning question Jennifer Averett
2023-04-20 15:12 ` Jeff Johnston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).