mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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 <gw.fossdev@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com> (v1)
This commit is contained in:
parent
811eb70a57
commit
0b984188f9
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue