disk cache: initialize cache path and index only when used
[mesa.git] / src / util / simple_mtx.h
index cd24b6f9eb970c97bb4da5caf86c994eaaddc86a..cfb82ba56c18ed14ec7c81aff4f16a990f368b8e 100644 (file)
@@ -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)
 {
 }