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

Author: Michel Zou <[email protected]>
Date:   Sun Nov 29 11:41:04 2020 +0100

gallium/tests: fix unused-but-set-variable warning

Reviewed-by: Jose Fonseca <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7713>

---

 src/gallium/tests/unit/u_cache_test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/tests/unit/u_cache_test.c 
b/src/gallium/tests/unit/u_cache_test.c
index cf8f70ba5a0..16fb1b8652e 100644
--- a/src/gallium/tests/unit/u_cache_test.c
+++ b/src/gallium/tests/unit/u_cache_test.c
@@ -89,6 +89,7 @@ int main() {
          *key = 0xdeadbeef;
          value_out = (cache_test_value *) util_cache_get(cache, key);
          assert(value_out == NULL);
+         (void)value_out;
          free(key);
 
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to