Mesa (master): util: Remove unused Android options_tbl_lock

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 15 16:19:25 UTC 2021


Module: Mesa
Branch: master
Commit: 96f0f46350715860ece0f2233a73eccf95ffba57
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=96f0f46350715860ece0f2233a73eccf95ffba57

Author: Michel Dänzer <mdaenzer at redhat.com>
Date:   Tue Apr 13 17:04:49 2021 +0200

util: Remove unused Android options_tbl_lock

Avoids warning:

../src/util/os_misc.c:132:21: error: unused variable 'options_tbl_lock' [-Werror,-Wunused-variable]
static simple_mtx_t options_tbl_lock = _SIMPLE_MTX_INITIALIZER_NP;
                    ^

Reviewed-by: Eric Anholt <eric at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10220>

---

 src/util/os_misc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/util/os_misc.c b/src/util/os_misc.c
index 9f1ee8336b1..31f1c55d6e8 100644
--- a/src/util/os_misc.c
+++ b/src/util/os_misc.c
@@ -129,7 +129,6 @@ os_log_message(const char *message)
 #  include "simple_mtx.h"
 
 static struct hash_table *options_tbl;
-static simple_mtx_t options_tbl_lock = _SIMPLE_MTX_INITIALIZER_NP;
 
 static void
 options_tbl_fini(void)



More information about the mesa-commit mailing list