[virglrenderer-devel] [PATCH v2 12/15] gallium/aux/tgsi_util.c: Annotate unused parameter
Gert Wollny
gert.wollny at collabora.com
Tue Jun 5 20:20:00 UTC 2018
Silences:
tgsi/tgsi_util.c: In function
'tgsi_util_get_full_src_register_sign_mode':
../../../../src/gallium/auxiliary/tgsi/tgsi_util.c:109:13: warning:
unused parameter 'component' [-Wunused-parameter]
unsigned component )
^~~~~~~~~
v2: use mesa style UNUSED annotation for unused parameters
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
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;
--
2.16.4
More information about the virglrenderer-devel
mailing list