From b092af40a52471297b29ba0c07c078f08d51cca0 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 20 Nov 2013 12:59:22 -0800 Subject: [PATCH] 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 --- src/mesa/main/texobj.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.30.2