[cairo-commit] test/cairo-test.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Aug 8 01:36:19 PDT 2006


 test/cairo-test.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

New commits:
diff-tree f089a07679535959fe7b12acb0550ff16d560788 (from 9d542a29cba71fe4b4067fa9a9c0fe98a7d8a7a8)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Aug 8 04:36:13 2006 -0400

    Fix misplaced volatile keyword

diff --git a/test/cairo-test.c b/test/cairo-test.c
index eb358d8..fddf5fe 100644
--- a/test/cairo-test.c
+++ b/test/cairo-test.c
@@ -1700,7 +1700,7 @@ cairo_test_expecting (cairo_test_t *test
     const char *tname;
     void (*old_segfault_handler)(int);
     volatile cairo_test_status_t status, ret;
-    volatile cairo_test_target_t **targets_to_test;
+    cairo_test_target_t ** volatile targets_to_test;
     cairo_test_target_t targets[] =
 	{
 	    { "image", CAIRO_SURFACE_TYPE_IMAGE, CAIRO_CONTENT_COLOR_ALPHA,
@@ -1907,7 +1907,7 @@ cairo_test_expecting (cairo_test_t *test
     ret = CAIRO_TEST_UNTESTED;
     for (i = 0; i < num_targets; i++) {
 	for (j = 0; j < NUM_DEVICE_OFFSETS; j++) {
-	    volatile cairo_test_target_t *target = targets_to_test[i];
+	    cairo_test_target_t * volatile target = targets_to_test[i];
 	    volatile int dev_offset = j * 25;
 
 	    cairo_test_log ("Testing %s with %s target (dev offset %d)\n", test->name, target->name, dev_offset);


More information about the cairo-commit mailing list