]> granicus.if.org Git - esp-idf/commitdiff
newlib: fix errors for GCC 8 support
authorAnton Maklakov <anton@espressif.com>
Thu, 24 May 2018 11:09:23 +0000 (19:09 +0800)
committerbot <bot@espressif.com>
Mon, 2 Jul 2018 09:05:00 +0000 (09:05 +0000)
components/newlib/include/sys/reent.h:405:11: error: unnecessary parentheses in declaration of '_sig_func' [-Werror=parentheses]
   void (**(_sig_func))(int);
           ^

components/newlib/include/sys/reent.h

index ee40961894ab86703d65a5ea4c96683a5b6155a1..b35595a7d4a18d431a5b3599ff3757af62f3bdd5 100644 (file)
@@ -402,7 +402,7 @@ struct _reent
   char *_asctime_buf;
 
   /* signal info */
-  void (**(_sig_func))(int);
+  void (**_sig_func)(int);
 
 # ifndef _REENT_GLOBAL_ATEXIT
   /* atexit stuff */