From: Gert Wollny Date: Tue, 5 Jun 2018 11:58:55 +0000 (+0200) Subject: gallium/aux/tgsi_build.c: Remove unused parameters prev_token from various functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc46b2aa990b85f47794a604141ec8239ffe868a;p=mesa.git gallium/aux/tgsi_build.c: Remove unused parameters prev_token from various functions remove parameter prev_token unused in tgsi_build_instruction_label tgsi_build_instruction_texture tgsi_build_instruction_memory tgsi_build_texture_offset This fixes the following warnings: tgsi/tgsi_build.c: In function 'tgsi_build_instruction_label': tgsi/tgsi_build.c:716:24: warning: unused parameter 'prev_token' [- Wunused-parameter] struct tgsi_token *prev_token, ^~~~~~~~~~ tgsi/tgsi_build.c: In function 'tgsi_build_instruction_texture': tgsi/tgsi_build.c:749:23: warning: unused parameter 'prev_token' [- Wunused-parameter] struct tgsi_token *prev_token, ^~~~~~~~~~ tgsi/tgsi_build.c: In function 'tgsi_build_instruction_memory': tgsi/tgsi_build.c:784:23: warning: unused parameter 'prev_token' [- Wunused-parameter] struct tgsi_token *prev_token, ^~~~~~~~~~ tgsi/tgsi_build.c: In function 'tgsi_build_texture_offset': tgsi/tgsi_build.c:819:23: warning: unused parameter 'prev_token' [- Wunused-parameter] struct tgsi_token *prev_token, ^~~~~~~~~~ Signed-off-by: Gert Wollny Reviewed-by: Emil Velikov --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_build.c b/src/gallium/auxiliary/tgsi/tgsi_build.c index 36c36d93c0f..2bb4a9dd7db 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_build.c +++ b/src/gallium/auxiliary/tgsi/tgsi_build.c @@ -712,7 +712,6 @@ tgsi_default_instruction_label( void ) static struct tgsi_instruction_label tgsi_build_instruction_label( unsigned label, - struct tgsi_token *prev_token, struct tgsi_instruction *instruction, struct tgsi_header *header ) { @@ -745,7 +744,6 @@ tgsi_build_instruction_texture( unsigned texture, unsigned num_offsets, unsigned return_type, - struct tgsi_token *prev_token, struct tgsi_instruction *instruction, struct tgsi_header *header ) { @@ -780,7 +778,6 @@ tgsi_build_instruction_memory( unsigned qualifier, unsigned texture, unsigned format, - struct tgsi_token *prev_token, struct tgsi_instruction *instruction, struct tgsi_header *header ) { @@ -815,7 +812,6 @@ tgsi_default_texture_offset( void ) static struct tgsi_texture_offset tgsi_build_texture_offset( int index, int file, int swizzle_x, int swizzle_y, int swizzle_z, - struct tgsi_token *prev_token, struct tgsi_instruction *instruction, struct tgsi_header *header ) { @@ -1091,7 +1087,6 @@ tgsi_build_full_instruction( *instruction_label = tgsi_build_instruction_label( full_inst->Label.Label, - prev_token, instruction, header ); prev_token = (struct tgsi_token *) instruction_label; @@ -1110,7 +1105,6 @@ tgsi_build_full_instruction( full_inst->Texture.Texture, full_inst->Texture.NumOffsets, full_inst->Texture.ReturnType, - prev_token, instruction, header ); prev_token = (struct tgsi_token *) instruction_texture; @@ -1128,7 +1122,6 @@ tgsi_build_full_instruction( full_inst->TexOffsets[i].SwizzleX, full_inst->TexOffsets[i].SwizzleY, full_inst->TexOffsets[i].SwizzleZ, - prev_token, instruction, header); prev_token = (struct tgsi_token *) texture_offset; @@ -1148,7 +1141,6 @@ tgsi_build_full_instruction( full_inst->Memory.Qualifier, full_inst->Memory.Texture, full_inst->Memory.Format, - prev_token, instruction, header ); prev_token = (struct tgsi_token *) instruction_memory;