aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2017-11-16 16:09:52 +0100
committerBrian Paul <[email protected]>2017-11-17 09:27:57 -0700
commit0b984188f980830b8385f1c0a81ea7852c230b5d (patch)
tree34e3776e295e9f7c31e3b600520b69b82cef0f29 /src/util
parent811eb70a5782a507168d3837ffa00cbe63a5412c (diff)
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 <[email protected]> Reviewed-by: Brian Paul <[email protected]> (v1)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/simple_mtx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/simple_mtx.h b/src/util/simple_mtx.h
index cd24b6f9eb9..cfb82ba56c1 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)
{
}