mesa: Silence GCC warning in count_tex_size
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 20 Nov 2013 20:59:22 +0000 (12:59 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 5 Dec 2013 01:22:42 +0000 (17:22 -0800)
main/texobj.c: In function 'count_tex_size':
main/texobj.c:886:23: warning: unused parameter 'key' [-Wunused-parameter]

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texobj.c

index 012e873f5aaefc648545b6203d573d42f3a396d9..64689624098c01d149142e1a32e9a590333c27fc 100644 (file)
@@ -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);
 }