From 75c9aa6670d60b592f58ed1437549959aeccfd6e Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 17 May 2016 13:54:09 -0700 Subject: [PATCH] glsl/linker: Silence unused parameter warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The parameter appears to have been unused since the function was added in commit 12ba6cfb. Remove it. glsl/linker.cpp:2886:60: warning: unused parameter ‘prog’ [-Wunused-parameter] match_explicit_outputs_to_inputs(struct gl_shader_program *prog, ^ Signed-off-by: Ian Romanick Reviewed-by: Timothy Arceri --- src/compiler/glsl/linker.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 70c6317ca6a..586e2b20d54 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -2883,8 +2883,7 @@ assign_attribute_or_color_locations(gl_shader_program *prog, * unmatch flag if found so we don't optimise them away. */ static void -match_explicit_outputs_to_inputs(struct gl_shader_program *prog, - gl_shader *producer, +match_explicit_outputs_to_inputs(gl_shader *producer, gl_shader *consumer) { glsl_symbol_table parameters; @@ -4679,7 +4678,7 @@ link_shaders(struct gl_context *ctx, struct gl_shader_program *prog) if (prog->_LinkedShaders[i] == NULL) continue; - match_explicit_outputs_to_inputs(prog, prog->_LinkedShaders[prev], + match_explicit_outputs_to_inputs(prog->_LinkedShaders[prev], prog->_LinkedShaders[i]); prev = i; } -- 2.30.2