From: Gert Wollny Date: Thu, 16 Nov 2017 15:09:52 +0000 (+0100) Subject: src/util/simple_mtx.h: Fix two -Wunused-param warnings. X-Git-Tag: upstream/18.1.0~3955 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b984188f980830b8385f1c0a81ea7852c230b5d;p=platform%2Fupstream%2Fmesa.git src/util/simple_mtx.h: Fix two -Wunused-param warnings. Decorate the parameters accordingly with "UNUSED" or "MAYBE_UNUSED" (for the param that is used in debug mode, but not in release mode). v2: move UNUSED decoration in front of parameter declaration Signed-off-by: Gert Wollny Reviewed-by: Brian Paul (v1) --- diff --git a/src/util/simple_mtx.h b/src/util/simple_mtx.h index cd24b6f..cfb82ba 100644 --- a/src/util/simple_mtx.h +++ b/src/util/simple_mtx.h @@ -61,7 +61,7 @@ typedef struct { #define _SIMPLE_MTX_INITIALIZER_NP { 0 } static inline void -simple_mtx_init(simple_mtx_t *mtx, int type) +simple_mtx_init(simple_mtx_t *mtx, MAYBE_UNUSED int type) { assert(type == mtx_plain); @@ -69,7 +69,7 @@ simple_mtx_init(simple_mtx_t *mtx, int type) } static inline void -simple_mtx_destroy(simple_mtx_t *mtx) +simple_mtx_destroy(UNUSED simple_mtx_t *mtx) { }