From c7fe2bdb5dad649c994660b9ebb1f63051b726f1 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 30 May 2018 16:45:51 +0200 Subject: [PATCH] gallium/aux/tgsi/tgsi_util.c: Fix warnings tgsi_ureg.c: In function 'ureg_DECL_sampler': tgsi_ureg.c:601:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ureg->sampler[i].Index == nr) ^~ tgsi_ureg.c: In function 'validate': tgsi_ureg.c:908:32: warning: unused parameter 'opcode' [-Wunused- parameter] static void validate( unsigned opcode, ^~~~~~ tgsi_ureg.c:909:32: warning: unused parameter 'nr_dst' [-Wunused- parameter] unsigned nr_dst, ^~~~~~ tgsi_ureg.c:910:32: warning: unused parameter 'nr_src' [-Wunused- parameter] unsigned nr_src ) ^~~~~~ tgsi_ureg.c: In function 'emit_decls': tgsi_ureg.c:1335:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ureg->properties[i] != ~0) ^~ tgsi_ureg.c: In function 'ureg_create': tgsi_ureg.c:1594:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < ARRAY_SIZE(ureg->properties); i++) ^ v2: Replace VREND_UNUSED by UNUSED (Erik) Reviewed-by: Erik Faye-Lund Signed-off-by: Gert Wollny Signed-off-by: Jakob Bornecrantz --- src/gallium/auxiliary/tgsi/tgsi_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_util.c b/src/gallium/auxiliary/tgsi/tgsi_util.c index d572ff0..47e632d 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_util.c +++ b/src/gallium/auxiliary/tgsi/tgsi_util.c @@ -106,7 +106,7 @@ tgsi_util_set_src_register_swizzle( unsigned tgsi_util_get_full_src_register_sign_mode( const struct tgsi_full_src_register *reg, - unsigned component ) + UNUSED unsigned component ) { unsigned sign_mode;