Mesa (mesa_7_7_branch): progs/tests: Silence fprintf format warning.

Vinson Lee vlee at kemper.freedesktop.org
Tue Jan 12 03:16:59 UTC 2010


Module: Mesa
Branch: mesa_7_7_branch
Commit: f07e87ffba38524a87613d14d01344a3343ec6fb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f07e87ffba38524a87613d14d01344a3343ec6fb

Author: Vinson Lee <vlee at vmware.com>
Date:   Mon Jan 11 19:15:54 2010 -0800

progs/tests: Silence fprintf format warning.

---

 progs/tests/getprocaddress.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/progs/tests/getprocaddress.c b/progs/tests/getprocaddress.c
index e699baf..38ca700 100644
--- a/progs/tests/getprocaddress.c
+++ b/progs/tests/getprocaddress.c
@@ -660,8 +660,8 @@ exercise_CompressedTextures(GLenum dimension)
    glGetTexLevelParameteriv(dimension, 0, GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB, 
       &queryCompressedSize);
    if (queryCompressedSize != sizeof(compressedTexture)) {
-      fprintf(stderr, "%s: compressed 3D texture changed size: expected %d, actual %d\n",
-         __FUNCTION__, sizeof(compressedTexture), queryCompressedSize);
+      fprintf(stderr, "%s: compressed 3D texture changed size: expected %lu, actual %d\n",
+         __FUNCTION__, (unsigned long) sizeof(compressedTexture), queryCompressedSize);
       return GL_FALSE;
    }
    (*GetCompressedTexImageARB)(dimension, 0, queryCompressedData);




More information about the mesa-commit mailing list