mesa: Remove context parameter from _mesa_init_shader_program
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 20 Oct 2014 22:03:06 +0000 (15:03 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 25 Oct 2014 02:54:39 +0000 (19:54 -0700)
Silences:

../../src/mesa/main/shaderobj.c: In function '_mesa_init_shader_program':
../../src/mesa/main/shaderobj.c:239:46: warning: unused parameter 'ctx' [-Wunused-parameter]

For now, this adds a couple other unused parameter warnings, but future
patches will clean those up.

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/mesa/main/shaderobj.c
src/mesa/main/shaderobj.h

index 15c736e4fc56e3753ab130e117cc3ccc8d8b2824..e703d42738fdfb8bdb004a289a5a2e05fe2201f9 100644 (file)
@@ -236,7 +236,7 @@ _mesa_reference_shader_program(struct gl_context *ctx,
 }
 
 void
-_mesa_init_shader_program(struct gl_context *ctx, struct gl_shader_program *prog)
+_mesa_init_shader_program(struct gl_shader_program *prog)
 {
    prog->Type = GL_SHADER_PROGRAM_MESA;
    prog->RefCount = 1;
@@ -267,7 +267,7 @@ _mesa_new_shader_program(struct gl_context *ctx, GLuint name)
    shProg = rzalloc(NULL, struct gl_shader_program);
    if (shProg) {
       shProg->Name = name;
-      _mesa_init_shader_program(ctx, shProg);
+      _mesa_init_shader_program(shProg);
    }
    return shProg;
 }
index be1e44e8d5a785a6c1e2a08dd809186c7a094c00..6285941b425e54180060fff7548123aa33e235b6 100644 (file)
@@ -72,7 +72,7 @@ extern struct gl_shader *
 _mesa_new_shader(struct gl_context *ctx, GLuint name, GLenum type);
 
 extern void
-_mesa_init_shader_program(struct gl_context *ctx, struct gl_shader_program *prog);
+_mesa_init_shader_program(struct gl_shader_program *prog);
 
 extern struct gl_shader_program *
 _mesa_lookup_shader_program(struct gl_context *ctx, GLuint name);