2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-10 01:20:56 +08:00

Improve VxWorks GTHREAD_ONCE_INIT

2019-12-30  Olivier Hainque  <hainque@adacore.com>

	* config/gthr-vxworks.h (GTHREAD_ONCE_INIT): Use
	standard zero-initializer syntax.

From-SVN: r279776
This commit is contained in:
Olivier Hainque 2019-12-30 21:22:21 +00:00 committed by Olivier Hainque
parent 49cfaa2a71
commit d7f5094aa3
2 changed files with 6 additions and 1 deletions

@ -1,3 +1,8 @@
2019-12-30 Olivier Hainque <hainque@adacore.com>
* config/gthr-vxworks.h (GTHREAD_ONCE_INIT): Use
standard zero-initializer syntax.
2019-12-30 Olivier Hainque <hainque@adacore.com>
* config/gthr-vxworks-tls.c (__gthread_getspecific): Fix

@ -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));