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 |    3 ++-
 pixman/pixman-compiler.h   |    3 ++-
 pixman/pixman-fast-path.h  |    4 +++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/pixman/pixman-bits-image.c b/pixman/pixman-bits-image.c
index c878250..2e83c82 100644
--- a/pixman/pixman-bits-image.c
+++ b/pixman/pixman-bits-image.c
@@ -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);
diff --git a/pixman/pixman-compiler.h b/pixman/pixman-compiler.h
index 8f6c787..0e08589 100644
--- a/pixman/pixman-compiler.h
+++ b/pixman/pixman-compiler.h
@@ -191,7 +191,8 @@
                value = tls_ ## name ## _alloc ();                      \
        }                                                               \
        return value;                                                   \
-    }
+    }                                                                  \
+    extern int no_such_variable                                                
 
 #   define PIXMAN_GET_THREAD_LOCAL(name)                               \
     tls_ ## name ## _get ()
diff --git a/pixman/pixman-fast-path.h b/pixman/pixman-fast-path.h
index ed09ba5..6fe448c 100644
--- a/pixman/pixman-fast-path.h
+++ b/pixman/pixman-fast-path.h
@@ -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                                           \
-- 
1.6.3.3

_______________________________________________
Pixman mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pixman

Reply via email to