summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2014-10-20 14:50:55 -0700
committerIan Romanick <[email protected]>2014-10-24 19:54:38 -0700
commit9cdf2f78fc123b9bfd2ff23f6d5cd4e834596c2b (patch)
tree6a070b7f93a7c4d5b77aee85bc5375e90440b7af /src/glsl
parentfefead3b63584603278b3388cc9c426a8a44e92c (diff)
mesa: Silence unused parameter warning in _mesa_clear_shader_program_data
Just remove the parameter. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/main.cpp2
-rw-r--r--src/glsl/standalone_scaffolding.cpp3
-rw-r--r--src/glsl/standalone_scaffolding.h3
3 files changed, 3 insertions, 5 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp
index 96d39153066..9b36a1feda1 100644
--- a/src/glsl/main.cpp
+++ b/src/glsl/main.cpp
@@ -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;
diff --git a/src/glsl/standalone_scaffolding.cpp b/src/glsl/standalone_scaffolding.cpp
index a635c969515..67b0d0c822c 100644
--- a/src/glsl/standalone_scaffolding.cpp
+++ b/src/glsl/standalone_scaffolding.cpp
@@ -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;
diff --git a/src/glsl/standalone_scaffolding.h b/src/glsl/standalone_scaffolding.h
index b805f4046f5..895dd2782fb 100644
--- a/src/glsl/standalone_scaffolding.h
+++ b/src/glsl/standalone_scaffolding.h
@@ -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,