[Mesa-dev] [PATCH 10/11] glapi/glx: Mark byteswap functions as _X_UNUSED

Adam Jackson ajax at redhat.com
Thu Mar 24 18:10:05 UTC 2016


Squashes the one remaining warning in the xserver build.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 src/mapi/glapi/gen/glX_proto_recv.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mapi/glapi/gen/glX_proto_recv.py b/src/mapi/glapi/gen/glX_proto_recv.py
index a138adb..7eb19df 100644
--- a/src/mapi/glapi/gen/glX_proto_recv.py
+++ b/src/mapi/glapi/gen/glX_proto_recv.py
@@ -171,7 +171,7 @@ class PrintGlxDispatchFunctions(glX_proto_common.glx_print_proto):
                 if t.glx_name not in already_done:
                     real_name = self.real_types[t_size]
 
-                    print 'static %s' % (t_name)
+                    print 'static _X_UNUSED %s' % (t_name)
                     print 'bswap_%s( const void * src )' % (t.glx_name)
                     print '{'
                     print '    union { %s dst; %s ret; } x;' % (real_name, t_name)
-- 
2.5.0



More information about the mesa-dev mailing list