[Mesa-dev] [PATCH v2 22/29] gallium/aux/os/os_thread.h: Silence -Wunused-param.

Gert Wollny gw.fossdev at gmail.com
Thu Nov 16 15:09:55 UTC 2017


With --disable-debug a parameter is not used. Silence this
warning by fake-using it.

Signed-off-by: Gert Wollny <gw.fossdev at gmail.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
---
 src/gallium/auxiliary/os/os_thread.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h
index d9c685922a..f2629c5ffe 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
 }
 
-- 
2.13.6



More information about the mesa-dev mailing list