gallium/aux/util/u_format_table.py: Add UNUSED decoration to the generated function...
authorGert Wollny <gw.fossdev@gmail.com>
Thu, 16 Nov 2017 15:09:57 +0000 (16:09 +0100)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Nov 2017 16:27:57 +0000 (09:27 -0700)
Signed-off-by: Gert Wollny <gw.fossdev@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_format_pack.py

index a2327196e6f631fd64bee7c3d0ab2791683a69c1..c9b8cd7abc043754c3b5fd494780dff7968d94f5 100644 (file)
@@ -674,7 +674,7 @@ def generate_format_fetch(format, dst_channel, dst_native_type, dst_suffix):
     name = format.short_name()
 
     print 'static inline void'
-    print 'util_format_%s_fetch_%s(%s *dst, const uint8_t *src, unsigned i, unsigned j)' % (name, dst_suffix, dst_native_type)
+    print 'util_format_%s_fetch_%s(%s *dst, const uint8_t *src, UNUSED unsigned i, UNUSED unsigned j)' % (name, dst_suffix, dst_native_type)
     print '{'
 
     if is_format_supported(format):