diff options
author | Ian Romanick <[email protected]> | 2014-04-04 11:11:18 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-04-11 12:26:01 -0700 |
commit | 157391a41bc3e0222888d0450405867139ab4c9d (patch) | |
tree | a455fdbb8d50f5500b453088dbc495e507a91a07 /src | |
parent | 943b2d52bf5df6adde3c0abcb91d9a3899476ab0 (diff) |
linker: Clean up "unused parameter" warnings
../../src/glsl/link_uniform_initializers.cpp:87:1: warning: unused parameter 'mem_ctx' [-Wunused-parameter]
../../src/glsl/link_uniform_initializers.cpp:87:1: warning: unused parameter 'type' [-Wunused-parameter]
../../src/glsl/link_uniform_initializers.cpp:127:1: warning: unused parameter 'mem_ctx' [-Wunused-parameter]
../../src/glsl/link_uniform_initializers.cpp:127:1: warning: unused parameter 'type' [-Wunused-parameter]
Signed-off-by: Ian Romanick <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76323
Reviewed-by: Kenneth Graunke <[email protected]>
Cc: "10.1" <[email protected]>
Cc: [email protected]
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/link_uniform_initializers.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/glsl/link_uniform_initializers.cpp b/src/glsl/link_uniform_initializers.cpp index bbdeec9039c..c6338502d08 100644 --- a/src/glsl/link_uniform_initializers.cpp +++ b/src/glsl/link_uniform_initializers.cpp @@ -84,8 +84,7 @@ copy_constant_to_storage(union gl_constant_value *storage, } void -set_sampler_binding(void *mem_ctx, gl_shader_program *prog, - const char *name, const glsl_type *type, int binding) +set_sampler_binding(gl_shader_program *prog, const char *name, int binding) { struct gl_uniform_storage *const storage = get_storage(prog->UniformStorage, prog->NumUserUniformStorage, name); @@ -124,8 +123,7 @@ set_sampler_binding(void *mem_ctx, gl_shader_program *prog, } void -set_block_binding(void *mem_ctx, gl_shader_program *prog, - const char *name, const glsl_type *type, int binding) +set_block_binding(gl_shader_program *prog, const char *name, int binding) { struct gl_uniform_storage *const storage = get_storage(prog->UniformStorage, prog->NumUserUniformStorage, name); @@ -253,11 +251,9 @@ link_set_uniform_initializers(struct gl_shader_program *prog) if (type->is_sampler() || (type->is_array() && type->fields.array->is_sampler())) { - linker::set_sampler_binding(mem_ctx, prog, var->name, - type, var->data.binding); + linker::set_sampler_binding(prog, var->name, var->data.binding); } else if (var->is_in_uniform_block()) { - linker::set_block_binding(mem_ctx, prog, var->name, - type, var->data.binding); + linker::set_block_binding(prog, var->name, var->data.binding); } else { assert(!"Explicit binding not on a sampler or UBO."); } |