[Piglit] [PATCH] gl-3.0/minmax: Fix printf format warnings.
Vinson Lee
vlee at freedesktop.org
Fri Mar 23 23:06:52 PDT 2012
Fixes these GCC warnings.
minmax.c: In function ‘max_test_i’:
minmax.c:53:4: warning: format ‘%d’ expects argument of type ‘int’, but
argument 5 has type ‘GLint *’ [-Wformat]
minmax.c:56:3: warning: format ‘%d’ expects argument of type ‘int’, but
argument 4 has type ‘GLint *’ [-Wformat]
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/spec/gl-3.0/minmax.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/spec/gl-3.0/minmax.c b/tests/spec/gl-3.0/minmax.c
index 4d99860..c2175de 100644
--- a/tests/spec/gl-3.0/minmax.c
+++ b/tests/spec/gl-3.0/minmax.c
@@ -50,10 +50,10 @@ max_test_i(GLenum token, GLint max, const char *name)
if (val[0] > max) {
fprintf(stderr, "%-50s %8d %8d (ERROR)\n",
- name, max, val);
+ name, max, val[0]);
pass = false;
} else {
- printf("%-50s %8d %8d\n", name, max, val);
+ printf("%-50s %8d %8d\n", name, max, val[0]);
}
}
--
1.7.9.1
More information about the Piglit
mailing list