mesa: Fix format warnings
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>
Thu, 21 Jan 2016 01:03:26 +0000 (17:03 -0800)
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>
Thu, 21 Jan 2016 17:18:06 +0000 (09:18 -0800)
main/shaderapi.c:1318:51: warning: format specifies type 'unsigned int' but the argument has type 'GLhandleARB' (aka 'unsigned long') [-Wformat]
      _mesa_debug(ctx, "glDeleteObjectARB(%u)\n", obj);
                                          ~~      ^~~
                                          %lu

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/shaderapi.c

index 9512e3b3df51c45842504753e034500b7734a4d3..a988f41697bb1b16e743d282cdd4339f4d4cd15a 100644 (file)
@@ -1315,7 +1315,7 @@ _mesa_DeleteObjectARB(GLhandleARB obj)
 {
    if (MESA_VERBOSE & VERBOSE_API) {
       GET_CURRENT_CONTEXT(ctx);
-      _mesa_debug(ctx, "glDeleteObjectARB(%u)\n", obj);
+      _mesa_debug(ctx, "glDeleteObjectARB(%lu)\n", (unsigned long)obj);
    }
 
    if (obj) {