Fix "syntax error: empty declaration" warnings.
authorMika Yrjola <mika.yrjola@movial.com>
Fri, 1 Oct 2010 13:17:50 +0000 (16:17 +0300)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 4 Oct 2010 15:20:01 +0000 (11:20 -0400)
These minor changes should fix a large number of
macro declaration - related "syntax error:  empty declaration" warnings
which are seen while compiling the code with the Solaris Studio
compiler.

pixman/pixman-bits-image.c
pixman/pixman-compiler.h
pixman/pixman-fast-path.h

index c878250..2e83c82 100644 (file)
@@ -944,7 +944,8 @@ convert_r5g6b5 (const uint8_t *row, int x)
                                          convert_ ## format,           \
                                          PIXMAN_ ## format,            \
                                          repeat_mode);                 \
-    }
+    }                                                                  \
+    extern int no_such_variable
 
 MAKE_BILINEAR_FETCHER (pad_a8r8g8b8,     a8r8g8b8, PIXMAN_REPEAT_PAD);
 MAKE_BILINEAR_FETCHER (none_a8r8g8b8,    a8r8g8b8, PIXMAN_REPEAT_NONE);
index 8f6c787..0e08589 100644 (file)
                value = tls_ ## name ## _alloc ();                      \
        }                                                               \
        return value;                                                   \
-    }
+    }                                                                  \
+    extern int no_such_variable                                                
 
 #   define PIXMAN_GET_THREAD_LOCAL(name)                               \
     tls_ ## name ## _get ()
index ed09ba5..6fe448c 100644 (file)
@@ -381,7 +381,9 @@ fast_composite_scaled_nearest_ ## scale_func_name (pixman_implementation_t *imp,
                          OP, repeat_mode)                                              \
     FAST_NEAREST_MAINLOOP(scale_func_name##_##OP,                                      \
                          scaled_nearest_scanline_ ## scale_func_name ## _ ## OP,       \
-                         src_type_t, dst_type_t, repeat_mode)
+                         src_type_t, dst_type_t, repeat_mode)                          \
+                                                                                       \
+    extern int no_such_variable
 
 
 #define SCALED_NEAREST_FLAGS                                           \