public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] newlib: libc: reente.h: remove unnecessary parentheses
@ 2022-05-18 10:03 jiawei
  2022-05-18 10:39 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: jiawei @ 2022-05-18 10:03 UTC (permalink / raw)
  To: newlib
  Cc: msebor, sebastian.huber, maxim.blinov, palmer, jim.wilson.gcc,
	kito.cheng, wuwei2016, Jia-Wei Chen

From: Jia-Wei Chen <jiawei@iscas.ac.cn>

The compiler warns the double parentheses are unnecessary in some
target, and cause fail cases when doing some testcases in regression.

gcc/testsuite/g++.dg/warn/Wstringop-overflow-6.C

Remove the unnecessary parentheses will fix it. See more details in 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85775

Same like in commit 05425831290c9869bc7987b5df3ce84aa4f19a6c,
Author: Maxim Blinov <maxim.blinov@embecosm.com>
Date:   Thu Jul 22 22:41:42 2021 +0100

     Remove unneccesary parenthesis around declarator

Thanks for Sebastian Huber's remind!

ChangeLog:

        * newlib/libc/include/sys/reent.h (struct _reent): Remove
        * additonal parentheses. 

---
 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/reent.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;
 
   /* signal info */
-  void (**(_sig_func))(int);
+  void (** _sig_func)(int);
 
 #ifdef _REENT_BACKWARD_BINARY_COMPAT
   struct _atexit *_reserved_6;
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] newlib: libc: reente.h: remove unnecessary parentheses
  2022-05-18 10:03 [PATCH] newlib: libc: reente.h: remove unnecessary parentheses jiawei
@ 2022-05-18 10:39 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2022-05-18 10:39 UTC (permalink / raw)
  To: jiawei; +Cc: newlib, maxim.blinov, msebor, wuwei2016, palmer, kito.cheng

On May 18 18:03, jiawei wrote:
> From: Jia-Wei Chen <jiawei@iscas.ac.cn>
> 
> The compiler warns the double parentheses are unnecessary in some
> target, and cause fail cases when doing some testcases in regression.
> 
> gcc/testsuite/g++.dg/warn/Wstringop-overflow-6.C
> 
> Remove the unnecessary parentheses will fix it. See more details in 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85775
> 
> Same like in commit 05425831290c9869bc7987b5df3ce84aa4f19a6c,
> Author: Maxim Blinov <maxim.blinov@embecosm.com>
> Date:   Thu Jul 22 22:41:42 2021 +0100
> 
>      Remove unneccesary parenthesis around declarator
> 
> Thanks for Sebastian Huber's remind!
> 
> ChangeLog:
> 
>         * newlib/libc/include/sys/reent.h (struct _reent): Remove
>         * additonal parentheses. 

Pushed with fixed subject and dropping tne CVS-style entry in the commit
message. We don't do CVS anymore these days :)


Thanks,
Corinna


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-18 10:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18 10:03 [PATCH] newlib: libc: reente.h: remove unnecessary parentheses jiawei
2022-05-18 10:39 ` Corinna Vinschen

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).