tests/spec/arb_viewport_array/queries.c: In function ‘piglit_init’:
tests/spec/arb_viewport_array/queries.c:58:11: warning: unused variable ‘vald’
GLdouble vald[4] = {0.0, 0.0, 0.0, 0.0};
Which is only used if compiled with OpenGL support, but not when
compiled for GLES.
Signed-off-by: Dylan Baker <[email protected]>
---
tests/spec/arb_viewport_array/queries.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/spec/arb_viewport_array/queries.c
b/tests/spec/arb_viewport_array/queries.c
index 2b10b3a..4973931 100644
--- a/tests/spec/arb_viewport_array/queries.c
+++ b/tests/spec/arb_viewport_array/queries.c
@@ -55,7 +55,9 @@ piglit_init(int argc, char **argv)
bool pass = true;
GLint maxVP;
GLboolean scEnabled;
+#ifdef PIGLIT_USE_OPENGL
GLdouble vald[4] = {0.0, 0.0, 0.0, 0.0};
+#endif
GLfloat valf[4] = {0.0, 0.0, 0.0, 0.0};
GLint vali[4] = {0, 0, 0, 0};
int i;
--
2.10.0
_______________________________________________
Piglit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/piglit