[Mesa-dev] [PATCH v2 24/29] gallium/aux/util/u_format_table.py: Add UNUSED decoration to the generated function headers
Gert Wollny
gw.fossdev at gmail.com
Thu Nov 16 15:09:57 UTC 2017
Signed-off-by: Gert Wollny <gw.fossdev at gmail.com>
---
src/gallium/auxiliary/util/u_format_pack.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/util/u_format_pack.py b/src/gallium/auxiliary/util/u_format_pack.py
index a2327196e6..c9b8cd7abc 100644
--- a/src/gallium/auxiliary/util/u_format_pack.py
+++ b/src/gallium/auxiliary/util/u_format_pack.py
@@ -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):
--
2.13.6
More information about the mesa-dev
mailing list