From 4cdfa8e9b7177a12d7d693207be52a6c999236ef Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 24 Aug 2012 14:02:03 -0700 Subject: [PATCH] flip_test: add cast to pacify Solaris Studio compiler Fixes build error: "flip_test.c", line 180: improper pointer/integer combination: op "=" Signed-off-by: Alan Coopersmith Signed-off-by: Daniel Vetter --- 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 a6eb0c0a..67105905 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);