From 0ed2182b8322a565494701854377f54106dbeb55 Mon Sep 17 00:00:00 2001 From: theraven Date: Tue, 28 May 2013 10:00:11 +0000 Subject: [PATCH] Add explicit cast for pthread lock initialiser. --- lock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lock.h b/lock.h index e6f58f2..d39f07b 100644 --- a/lock.h +++ b/lock.h @@ -23,7 +23,7 @@ typedef pthread_mutex_t mutex_t; // If this pthread implementation has a static initializer for recursive // mutexes, use that, otherwise fall back to the portable version # ifdef PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP -# define INIT_LOCK(x) x = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP +# define INIT_LOCK(x) x = (pthread_mutex_t)PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP # elif defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER) # define INIT_LOCK(x) x = (pthread_mutex_t)PTHREAD_RECURSIVE_MUTEX_INITIALIZER # else