From baddcc38552237c469fecd46ccde6f7b65dd937d Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 23 Nov 2019 23:28:36 +0100 Subject: [PATCH] Avoid warning about variable being unused (C11) --- m-mutex.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m-mutex.h b/m-mutex.h index c6f08720..ad5ba800 100644 --- a/m-mutex.h +++ b/m-mutex.h @@ -96,6 +96,8 @@ static inline void m_thread_join(m_thread_t t) { int rc = thrd_join(*t, NULL); assert (rc == thrd_success); + // Avoid warning about variable unused. + (void) rc; } static inline void m_thread_yield(void)