util/ra: Use util_dynarray for handling the conflict lists.
[mesa.git] / src / util / simple_mtx.h
index c0cc13b3663ec75fb49619482f41221b79e63cc6..4fc8a0d4df49edb659dc7ae3457a351f61cd6ef8 100644 (file)
@@ -25,6 +25,7 @@
 #define _SIMPLE_MTX_H
 
 #include "util/futex.h"
+#include "util/macros.h"
 
 #include "c11/threads.h"
 
@@ -71,9 +72,11 @@ simple_mtx_init(simple_mtx_t *mtx, ASSERTED int type)
 }
 
 static inline void
-simple_mtx_destroy(simple_mtx_t *mtx)
+simple_mtx_destroy(ASSERTED simple_mtx_t *mtx)
 {
+#ifndef NDEBUG
    mtx->val = _SIMPLE_MTX_INVALID_VALUE;
+#endif
 }
 
 static inline void