From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7868) id 168EA385783F; Fri, 4 Aug 2023 08:58:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 168EA385783F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691139507; bh=Lr0/2MtXen7uJQzT/qa6efBOej71RSmNy6yTpcrKxWY=; h=From:To:Subject:Date:From; b=RgYf3mJSbH9Palk9GGWsjUhyxrYbDpyHEiNkkt8g0TYHOpVkjP4dhONzV48QM/vUv YnXt+N7Kmr/UERy52qWZ64lLacpWkHssI8Em34BcGvXxKGQn+JfwbSWlyzpUYe1Ny2 hcvz7deIQ7PWmO9aedlTXgZFnAVsnbSQYECDgHhU= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Takashi Yano To: newlib-cvs@sourceware.org Subject: [newlib-cygwin/cygwin-3_4-branch] newlib: gdtoa: Suppress compiler warning. X-Act-Checkin: newlib-cygwin X-Git-Author: Takashi Yano X-Git-Refname: refs/heads/cygwin-3_4-branch X-Git-Oldrev: 841b7307d60b4b21418df93190d8134262324eb7 X-Git-Newrev: 5259a3eee8fef35a3e11e7f447d01089ec9963dd Message-Id: <20230804085827.168EA385783F@sourceware.org> Date: Fri, 4 Aug 2023 08:58:27 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D5259a3eee8f= ef35a3e11e7f447d01089ec9963dd commit 5259a3eee8fef35a3e11e7f447d01089ec9963dd Author: Takashi Yano Date: Fri Aug 4 17:42:18 2023 +0900 newlib: gdtoa: Suppress compiler warning. =20 Fixes: 5ac83ea47a7a ("newlib: Fix memory leak regarding gdtoa-based _ld= toa_r().") Signed-off-by: Takashi Yano 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-ld= toa.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, =20 /* 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) =3D 0; }