From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7868) id 6CC543857735; Fri, 4 Aug 2023 08:57:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CC543857735 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691139473; bh=MzqjDbrDTqPSFk+406yFs0rqoDQUG3L+SnFlw2iC3OI=; h=From:To:Subject:Date:From; b=CP8LthzOTd39VSTuaJd2eWvhsjyiOVH9xKFwDJc6POYKyQ/8YrQEAsHkEPjBDn0cF Y2P1X9JAGzcwF94z/8Ao7TMNqKSwdywBfAT1qWrFg9AEH58Dx/9uhPYnX/7c8edD0c bnJPLR58TYbuMMI3GWqRK+kE0qjeacJYRMq+pXpU= 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] newlib: gdtoa: Suppress compiler warning. X-Act-Checkin: newlib-cygwin X-Git-Author: Takashi Yano X-Git-Refname: refs/heads/master X-Git-Oldrev: 57e3e3d3abf6733567cc0f3d2a267a1dea21e9dd X-Git-Newrev: ab78bd2d228027d0ac5a84bfc409444d3ce18948 Message-Id: <20230804085753.6CC543857735@sourceware.org> Date: Fri, 4 Aug 2023 08:57:53 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Dab78bd2d228= 027d0ac5a84bfc409444d3ce18948 commit ab78bd2d228027d0ac5a84bfc409444d3ce18948 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; }