From: Gert Wollny Date: Thu, 16 Nov 2017 15:09:55 +0000 (+0100) Subject: gallium/aux/os/os_thread.h: Silence -Wunused-param. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=537d04615d4e4c41ba4959445d8bd1bd22763d50;p=mesa.git gallium/aux/os/os_thread.h: Silence -Wunused-param. With --disable-debug a parameter is not used. Silence this warning by fake-using it. Signed-off-by: Gert Wollny Reviewed-by: Brian Paul --- diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index d9c685922a5..f2629c5ffe5 100644 --- a/src/gallium/auxiliary/os/os_thread.h +++ b/src/gallium/auxiliary/os/os_thread.h @@ -56,6 +56,8 @@ __pipe_mutex_assert_locked(mtx_t *mutex) assert(ret == thrd_busy); if (ret == thrd_success) mtx_unlock(mutex); +#else + (void)mutex; #endif }