mesa: Silence unused parameter warning in _mesa_clear_shader_program_data
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 20 Oct 2014 21:50:55 +0000 (14:50 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 25 Oct 2014 02:54:38 +0000 (19:54 -0700)
Just remove the parameter.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/main.cpp
src/glsl/standalone_scaffolding.cpp
src/glsl/standalone_scaffolding.h
src/mesa/main/shaderobj.c
src/mesa/main/shaderobj.h
src/mesa/program/ir_to_mesa.cpp

index 96d39153066756837503e296bd053745c7b565c7..9b36a1feda1d5a09230bf8f70169e39361c4c3e1 100644 (file)
@@ -403,7 +403,7 @@ main(int argc, char **argv)
    }
 
    if ((status == EXIT_SUCCESS) && do_link)  {
-      _mesa_clear_shader_program_data(ctx, whole_program);
+      _mesa_clear_shader_program_data(whole_program);
 
       link_shaders(ctx, whole_program);
       status = (whole_program->LinkStatus) ? EXIT_SUCCESS : EXIT_FAILURE;
index a635c969515c7ad8891eaa773010b95dee6720c2..67b0d0c822caee75939a6441a2eb6a8a442673e9 100644 (file)
@@ -84,8 +84,7 @@ _mesa_new_shader(struct gl_context *ctx, GLuint name, GLenum type)
 }
 
 void
-_mesa_clear_shader_program_data(struct gl_context *ctx,
-                                struct gl_shader_program *shProg)
+_mesa_clear_shader_program_data(struct gl_shader_program *shProg)
 {
    unsigned i;
 
index b805f4046f5825aebbc7c5672be38118b3d2407e..895dd2782fbaffb1eed907dbef76971bc5dc732c 100644 (file)
@@ -45,8 +45,7 @@ extern "C" struct gl_shader *
 _mesa_new_shader(struct gl_context *ctx, GLuint name, GLenum type);
 
 extern "C" void
-_mesa_clear_shader_program_data(struct gl_context *,
-                                struct gl_shader_program *);
+_mesa_clear_shader_program_data(struct gl_shader_program *);
 
 extern "C" void
 _mesa_shader_debug(struct gl_context *ctx, GLenum type, GLuint *id,
index 785baa2b252459b1782b86196807032fe4ac3a84..15c736e4fc56e3753ab130e117cc3ccc8d8b2824 100644 (file)
@@ -277,8 +277,7 @@ _mesa_new_shader_program(struct gl_context *ctx, GLuint name)
  * Clear (free) the shader program state that gets produced by linking.
  */
 void
-_mesa_clear_shader_program_data(struct gl_context *ctx,
-                                struct gl_shader_program *shProg)
+_mesa_clear_shader_program_data(struct gl_shader_program *shProg)
 {
    unsigned i;
 
@@ -332,7 +331,7 @@ _mesa_free_shader_program_data(struct gl_context *ctx,
 
    assert(shProg->Type == GL_SHADER_PROGRAM_MESA);
 
-   _mesa_clear_shader_program_data(ctx, shProg);
+   _mesa_clear_shader_program_data(shProg);
 
    if (shProg->AttributeBindings) {
       string_to_uint_map_dtor(shProg->AttributeBindings);
index d72919c1f09c45fdab683f609ba8ec7b785df98f..be1e44e8d5a785a6c1e2a08dd809186c7a094c00 100644 (file)
@@ -82,8 +82,7 @@ _mesa_lookup_shader_program_err(struct gl_context *ctx, GLuint name,
                                 const char *caller);
 
 extern void
-_mesa_clear_shader_program_data(struct gl_context *ctx,
-                                struct gl_shader_program *shProg);
+_mesa_clear_shader_program_data(struct gl_shader_program *shProg);
 
 extern void
 _mesa_free_shader_program_data(struct gl_context *ctx,
index b3e04d7b60584cce810acd60df335bbde8a5564e..5cd9058221d73f87141ca55504a8c3a2c2ea6f33 100644 (file)
@@ -3020,7 +3020,7 @@ _mesa_glsl_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
 {
    unsigned int i;
 
-   _mesa_clear_shader_program_data(ctx, prog);
+   _mesa_clear_shader_program_data(prog);
 
    prog->LinkStatus = GL_TRUE;