[Mesa-dev] [PATCH 2/8] glsl/linker: Silence unused parameter warning

Ian Romanick idr at freedesktop.org
Tue May 17 22:11:51 UTC 2016


From: Ian Romanick <ian.d.romanick at intel.com>

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 <ian.d.romanick at intel.com>
Cc: Timothy Arceri <timothy.arceri at collabora.com>
---
 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 70c6317..586e2b2 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.5.5



More information about the mesa-dev mailing list