Mesa (master): tgsi: Mark tgsi_strings_check() unused

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 19 16:29:19 UTC 2019


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

Author: Kristian H. Kristensen <hoegsberg at chromium.org>
Date:   Wed Apr 10 13:09:01 2019 -0700

tgsi: Mark tgsi_strings_check() unused

It's there to hold the static asserts, don't warning about it being
unused.

Signed-off-by: Kristian H. Kristensen <hoegsberg at chromium.org>

---

 src/gallium/auxiliary/tgsi/tgsi_strings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary/tgsi/tgsi_strings.c
index 03261ed2d99..887d2271dc1 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_strings.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_strings.c
@@ -237,7 +237,7 @@ const char *tgsi_memory_names[4] =
 };
 
 
-static inline void
+UNUSED static inline void
 tgsi_strings_check(void)
 {
    STATIC_ASSERT(ARRAY_SIZE(tgsi_semantic_names) == TGSI_SEMANTIC_COUNT);




More information about the mesa-commit mailing list