From cea6489e43e9756f93f025291154a65fc35aa12c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 19 Sep 2016 01:10:27 +0200 Subject: Make PTHREAD_ONCE_INIT a symbolic value as required by Posix * sysdeps/pthread/bits/once.h (__PTHREAD_ONCE_INIT): Cast initializer to (struct __pthread_once). --- sysdeps/pthread/bits/once.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/pthread/bits') diff --git a/sysdeps/pthread/bits/once.h b/sysdeps/pthread/bits/once.h index 05895b9..53dbfd3 100644 --- a/sysdeps/pthread/bits/once.h +++ b/sysdeps/pthread/bits/once.h @@ -29,6 +29,6 @@ struct __pthread_once }; #define __PTHREAD_ONCE_INIT \ - { 0, __PTHREAD_SPIN_LOCK_INITIALIZER } + (struct __pthread_once) { 0, __PTHREAD_SPIN_LOCK_INITIALIZER } #endif /* bits/once.h */ -- cgit v1.2.3