From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 1AEB4385803D; Wed, 18 May 2022 10:39:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1AEB4385803D Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] newlib: libc: reent.h: remove unnecessary parentheses X-Act-Checkin: newlib-cygwin X-Git-Author: Jia-Wei Chen X-Git-Refname: refs/heads/master X-Git-Oldrev: 2faeaf50fd3e83a8573d6008f3e927c1d40c3b4a X-Git-Newrev: 12d07e1ddd2d5164d766a8804fae738e6acff11b Message-Id: <20220518103916.1AEB4385803D@sourceware.org> Date: Wed, 18 May 2022 10:39:16 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2022 10:39:16 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D12d07e1ddd2= d5164d766a8804fae738e6acff11b commit 12d07e1ddd2d5164d766a8804fae738e6acff11b Author: Jia-Wei Chen Date: Wed May 18 18:03:18 2022 +0800 newlib: libc: reent.h: remove unnecessary parentheses =20 The compiler warns the double parentheses are unnecessary in some target, and cause fail cases when doing some testcases in regression. =20 gcc/testsuite/g++.dg/warn/Wstringop-overflow-6.C =20 Remove the unnecessary parentheses will fix it. See more details in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85775 =20 Same like in commit 05425831290c9869bc7987b5df3ce84aa4f19a6c, Author: Maxim Blinov Date: Thu Jul 22 22:41:42 2021 +0100 =20 Remove unneccesary parenthesis around declarator =20 Thanks for Sebastian Huber's remind! Diff: --- newlib/libc/include/sys/reent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reen= t.h index 4a3cfbd34..64d76c27c 100644 --- a/newlib/libc/include/sys/reent.h +++ b/newlib/libc/include/sys/reent.h @@ -421,7 +421,7 @@ struct _reent char *_asctime_buf; =20 /* signal info */ - void (**(_sig_func))(int); + void (** _sig_func)(int); =20 #ifdef _REENT_BACKWARD_BINARY_COMPAT struct _atexit *_reserved_6;