[PATCH:intel-gpu-tools 3/4] flip_test: add cast to pacify Solaris Studio compiler
Alan Coopersmith
alan.coopersmith at oracle.com
Fri Aug 24 14:02:03 PDT 2012
Fixes build error:
"flip_test.c", line 180: improper pointer/integer combination: op "="
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
tests/flip_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/flip_test.c b/tests/flip_test.c
index a6eb0c0..6710590 100644
--- a/tests/flip_test.c
+++ b/tests/flip_test.c
@@ -177,7 +177,7 @@ static void connector_find_preferred_mode(struct test_output *o, int crtc_id)
static void
paint_flip_mode(cairo_t *cr, int width, int height, void *priv)
{
- bool odd_frame = priv;
+ bool odd_frame = (bool) priv;
if (odd_frame)
cairo_rectangle(cr, width/4, height/2, width/4, height/8);
--
1.7.9.2
More information about the xorg-devel
mailing list