From: Ian Romanick Date: Fri, 10 Apr 2020 17:31:14 +0000 (-0700) Subject: tnl: Silence unused parameter warnings in _tnl_split_inplace X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac13258a6eb468b4cc3995b423319b9b62f54d94;p=mesa.git tnl: Silence unused parameter warnings in _tnl_split_inplace Unused since db0eb3a437f ("vbo: Fix up in-place splitting for non-contiguous/indexed primitives.") which landed in 2010. src/mesa/tnl/t_split_inplace.c: In function ‘_tnl_split_inplace’: src/mesa/tnl/t_split_inplace.c:270:27: warning: unused parameter ‘min_index’ [-Wunused-parameter] 270 | GLuint min_index, | ~~~~~~~^~~~~~~~~ src/mesa/tnl/t_split_inplace.c:271:27: warning: unused parameter ‘max_index’ [-Wunused-parameter] 271 | GLuint max_index, | ~~~~~~~^~~~~~~~~ Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/mesa/tnl/t_split.c b/src/mesa/tnl/t_split.c index 9c59380c831..3959e11d236 100644 --- a/src/mesa/tnl/t_split.c +++ b/src/mesa/tnl/t_split.c @@ -137,8 +137,7 @@ _tnl_split_prims(struct gl_context *ctx, * individual primitives. */ _tnl_split_inplace(ctx, arrays, prim, nr_prims, ib, - min_index, max_index, num_instances, - base_instance, draw, limits); + num_instances, base_instance, draw, limits); } else { /* Why were we called? */ @@ -152,8 +151,7 @@ _tnl_split_prims(struct gl_context *ctx, * otherwise try to split the individual primitives. */ _tnl_split_inplace(ctx, arrays, prim, nr_prims, ib, - min_index, max_index, num_instances, - base_instance, draw, limits); + num_instances, base_instance, draw, limits); } else { /* Why were we called? */ diff --git a/src/mesa/tnl/t_split.h b/src/mesa/tnl/t_split.h index 7634e553a87..8f2d1baa53c 100644 --- a/src/mesa/tnl/t_split.h +++ b/src/mesa/tnl/t_split.h @@ -55,8 +55,6 @@ _tnl_split_inplace(struct gl_context *ctx, const struct _mesa_prim *prim, GLuint nr_prims, const struct _mesa_index_buffer *ib, - GLuint min_index, - GLuint max_index, GLuint num_instances, GLuint base_instance, tnl_draw_func draw, diff --git a/src/mesa/tnl/t_split_inplace.c b/src/mesa/tnl/t_split_inplace.c index 3ff9e01360b..126f6fddfdf 100644 --- a/src/mesa/tnl/t_split_inplace.c +++ b/src/mesa/tnl/t_split_inplace.c @@ -267,8 +267,6 @@ _tnl_split_inplace(struct gl_context *ctx, const struct _mesa_prim *prim, GLuint nr_prims, const struct _mesa_index_buffer *ib, - GLuint min_index, - GLuint max_index, GLuint num_instances, GLuint base_instance, tnl_draw_func draw, @@ -296,5 +294,3 @@ _tnl_split_inplace(struct gl_context *ctx, split_prims(&split); } - -