public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Takashi Yano <tyan0@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin/cygwin-3_4-branch] newlib: gdtoa: Suppress compiler warning. Date: Fri, 4 Aug 2023 08:58:27 +0000 (GMT) [thread overview] Message-ID: <20230804085827.168EA385783F@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=5259a3eee8fef35a3e11e7f447d01089ec9963dd commit 5259a3eee8fef35a3e11e7f447d01089ec9963dd Author: Takashi Yano <takashi.yano@nifty.ne.jp> Date: Fri Aug 4 17:42:18 2023 +0900 newlib: gdtoa: Suppress compiler warning. Fixes: 5ac83ea47a7a ("newlib: Fix memory leak regarding gdtoa-based _ldtoa_r().") Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp> Diff: --- newlib/libc/stdlib/gdtoa-ldtoa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/stdlib/gdtoa-ldtoa.c b/newlib/libc/stdlib/gdtoa-ldtoa.c index 09ba6b34b..d5db270a6 100644 --- a/newlib/libc/stdlib/gdtoa-ldtoa.c +++ b/newlib/libc/stdlib/gdtoa-ldtoa.c @@ -72,7 +72,7 @@ _ldtoa_r(struct _reent *ptr, /* reentrancy addition to use mprec storage pool */ if (_REENT_MP_RESULT (ptr)) { - freedtoa (ptr, _REENT_MP_RESULT (ptr)); + freedtoa (ptr, (char *) _REENT_MP_RESULT (ptr)); _REENT_MP_RESULT (ptr) = 0; }
reply other threads:[~2023-08-04 8:58 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230804085827.168EA385783F@sourceware.org \ --to=tyan0@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).