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

Author: Michel Zou <[email protected]>
Date:   Sun Nov 22 10:38:38 2020 +0100

glapi: fix unused-function warning

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

---

 src/mapi/glapi/glapi_entrypoint.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mapi/glapi/glapi_entrypoint.c 
b/src/mapi/glapi/glapi_entrypoint.c
index ff20bac4810..b99819afa0d 100644
--- a/src/mapi/glapi/glapi_entrypoint.c
+++ b/src/mapi/glapi/glapi_entrypoint.c
@@ -310,10 +310,12 @@ fill_in_entrypoint_offset(_glapi_proc entrypoint, GLuint 
offset)
 
 #else /* USE_*_ASM */
 
+#if defined(HAVE_PTHREAD) || defined(USE_ELF_TLS)
 static void
 init_glapi_relocs( void )
 {
 }
+#endif
 
 
 _glapi_proc

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

Reply via email to