Revert "Fix "syntax error: empty declaration" warnings."
authorSiarhei Siamashka <siarhei.siamashka@nokia.com>
Tue, 4 Jan 2011 06:18:38 +0000 (08:18 +0200)
committerSiarhei Siamashka <siarhei.siamashka@nokia.com>
Sun, 16 Jan 2011 18:47:56 +0000 (20:47 +0200)
This reverts commit b924bb1f8191cc7c386d8211d9822aeeaadcab44.

There is a better fix for these Solaris Studio warnings.

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

index ff2dde3..1fdd742 100644 (file)
@@ -1016,8 +1016,7 @@ convert_r5g6b5 (const uint8_t *row, int x)
                                          convert_ ## format,           \
                                          PIXMAN_ ## format,            \
                                          repeat_mode);                 \
-    }                                                                  \
-    extern int no_such_variable
+    }
 
 #define MAKE_NEAREST_FETCHER(name, format, repeat_mode)                        \
     static void                                                                \
@@ -1033,8 +1032,7 @@ convert_r5g6b5 (const uint8_t *row, int x)
                                         convert_ ## format,            \
                                         PIXMAN_ ## format,             \
                                         repeat_mode);                  \
-    }                                                                  \
-    extern int no_such_variable
+    }
 
 #define MAKE_FETCHERS(name, format, repeat_mode)                       \
     MAKE_NEAREST_FETCHER (name, format, repeat_mode);                  \
index 0e08589..8f6c787 100644 (file)
                value = tls_ ## name ## _alloc ();                      \
        }                                                               \
        return value;                                                   \
-    }                                                                  \
-    extern int no_such_variable                                                
+    }
 
 #   define PIXMAN_GET_THREAD_LOCAL(name)                               \
     tls_ ## name ## _get ()
index 6fe448c..ed09ba5 100644 (file)
@@ -381,9 +381,7 @@ 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)                          \
-                                                                                       \
-    extern int no_such_variable
+                         src_type_t, dst_type_t, repeat_mode)
 
 
 #define SCALED_NEAREST_FLAGS                                           \