From: Ian Romanick Date: Wed, 20 Nov 2013 20:59:22 +0000 (-0800) Subject: mesa: Silence GCC warning in count_tex_size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b092af40a52471297b29ba0c07c078f08d51cca0;p=mesa.git mesa: Silence GCC warning in count_tex_size main/texobj.c: In function 'count_tex_size': main/texobj.c:886:23: warning: unused parameter 'key' [-Wunused-parameter] Signed-off-by: Ian Romanick Reviewed-by: Jordan Justen Reviewed-by: Brian Paul --- diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 012e873f5aa..64689624098 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -889,6 +889,8 @@ count_tex_size(GLuint key, void *data, void *userData) (const struct gl_texture_object *) data; GLuint *total = (GLuint *) userData; + (void) key; + *total = *total + texture_size(texObj); }