From 749cd433061cff9e2d23565b735c79745b0e1530 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 18 Jul 2017 19:26:27 +0200 Subject: [PATCH] Remove warning in release mode. --- m-mutex.h | 1 + 1 file changed, 1 insertion(+) diff --git a/m-mutex.h b/m-mutex.h index 930ba124..9a455895 100644 --- a/m-mutex.h +++ b/m-mutex.h @@ -258,6 +258,7 @@ static inline void m_thread_create(m_thread_t t, void (*func)(void*), void *arg) static inline void m_thread_join(m_thread_t t) { int _rc = pthread_join(*t, NULL); + (void)_rc; // Avoid warning about variable unused. assert (_rc == 0); }