From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dmta1005.nifty.com (mta-snd01004.nifty.com [106.153.227.36]) by sourceware.org (Postfix) with ESMTPS id 52D4A3858C2D for ; Fri, 4 Aug 2023 08:54:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 52D4A3858C2D Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from localhost.localdomain by dmta1005.nifty.com with ESMTP id <20230804085426037.SRDC.5283.localhost.localdomain@nifty.com>; Fri, 4 Aug 2023 17:54:26 +0900 From: Takashi Yano To: newlib@sourceware.org Cc: Takashi Yano Subject: [PATCH] newlib: gdtoa: Suppress compiler warning. Date: Fri, 4 Aug 2023 17:54:08 +0900 Message-Id: <20230804085409.853-1-takashi.yano@nifty.ne.jp> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Fixes: 5ac83ea47a7a ("newlib: Fix memory leak regarding gdtoa-based _ldtoa_r().") Signed-off-by: Takashi Yano --- 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; } -- 2.39.0