[Mesa-dev] [PATCH 4/8] mesa: Silence GCC warning in count_tex_size

Ian Romanick idr at freedesktop.org
Tue Nov 26 15:54:19 PST 2013


From: Ian Romanick <ian.d.romanick at intel.com>

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 at intel.com>
---
 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 012e873..6468962 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);
 }
 
-- 
1.8.1.4



More information about the mesa-dev mailing list