[Piglit] [PATCH 3/4] arb_indirect_parameters: add cast to silence compiler warnings
Brian Paul
brianp at vmware.com
Fri Nov 10 22:44:44 UTC 2017
---
tests/spec/arb_indirect_parameters/tf-count-arrays.c | 2 +-
tests/spec/arb_indirect_parameters/tf-count-elements.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/spec/arb_indirect_parameters/tf-count-arrays.c b/tests/spec/arb_indirect_parameters/tf-count-arrays.c
index f70209c..7f64d8f 100644
--- a/tests/spec/arb_indirect_parameters/tf-count-arrays.c
+++ b/tests/spec/arb_indirect_parameters/tf-count-arrays.c
@@ -194,7 +194,7 @@ piglit_display(void)
/* Overdraw with the red quad, except count = 0 */
glMultiDrawArraysIndirectCountARB(
GL_TRIANGLE_FAN,
- (2 * 4 * 4), 4, 1, 0);
+ (const void *) (2 * 4 * 4), 4, 1, 0);
pass &= piglit_probe_rect_rgba(0, 0, piglit_width / 2, piglit_height,
g);
diff --git a/tests/spec/arb_indirect_parameters/tf-count-elements.c b/tests/spec/arb_indirect_parameters/tf-count-elements.c
index b8ea084..8cd7944 100644
--- a/tests/spec/arb_indirect_parameters/tf-count-elements.c
+++ b/tests/spec/arb_indirect_parameters/tf-count-elements.c
@@ -203,7 +203,7 @@ piglit_display(void)
/* Overdraw with the red quad, except count = 0 */
glMultiDrawElementsIndirectCountARB(
GL_TRIANGLES, GL_UNSIGNED_INT,
- (2 * 5 * 4), 4, 1, 0);
+ (const void *) (2 * 5 * 4), 4, 1, 0);
pass &= piglit_probe_rect_rgba(0, 0, piglit_width / 2, piglit_height,
g);
--
1.9.1
More information about the Piglit
mailing list