From d7f5094aa3dc482b86861d633b6d35c59c289c8b Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Mon, 30 Dec 2019 21:22:21 +0000 Subject: [PATCH] Improve VxWorks GTHREAD_ONCE_INIT 2019-12-30 Olivier Hainque * config/gthr-vxworks.h (GTHREAD_ONCE_INIT): Use standard zero-initializer syntax. From-SVN: r279776 --- libgcc/ChangeLog | 5 +++++ libgcc/config/gthr-vxworks.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 789f78af6b8..cb94bfb7042 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2019-12-30 Olivier Hainque + + * config/gthr-vxworks.h (GTHREAD_ONCE_INIT): Use + standard zero-initializer syntax. + 2019-12-30 Olivier Hainque * config/gthr-vxworks-tls.c (__gthread_getspecific): Fix diff --git a/libgcc/config/gthr-vxworks.h b/libgcc/config/gthr-vxworks.h index 7e3779a010a..70205cec18a 100644 --- a/libgcc/config/gthr-vxworks.h +++ b/libgcc/config/gthr-vxworks.h @@ -215,7 +215,7 @@ typedef struct #endif } __gthread_once_t; -#define __GTHREAD_ONCE_INIT { 0 } +#define __GTHREAD_ONCE_INIT {} extern int __gthread_once (__gthread_once_t *__once, void (*__func)(void)); -- 2.30.2