[gegl] tests: silence gcc



commit 949340386a72c3e1e7ab9c6ff5509a2a2c88e119
Author: Téo Mazars <teo mazars ensimag fr>
Date:   Fri Nov 8 15:07:03 2013 +0100

    tests: silence gcc

 tests/simple/test-buffer-tile-voiding.c |    4 +-
 tests/simple/test-svg-abyss.c           |   51 ++++++++++++++++--------------
 2 files changed, 29 insertions(+), 26 deletions(-)
---
diff --git a/tests/simple/test-buffer-tile-voiding.c b/tests/simple/test-buffer-tile-voiding.c
index 01abdae..2d775f6 100644
--- a/tests/simple/test-buffer-tile-voiding.c
+++ b/tests/simple/test-buffer-tile-voiding.c
@@ -23,7 +23,7 @@
 #include <string.h>
 
 static gboolean
-test_buffer_copy ()
+test_buffer_copy (void)
 {
   gboolean result = TRUE;
 
@@ -179,4 +179,4 @@ int main(int argc, char **argv)
   return -1;
 
   return 0;
-}
\ No newline at end of file
+}
diff --git a/tests/simple/test-svg-abyss.c b/tests/simple/test-svg-abyss.c
index 9e5cb0f..8ce9069 100644
--- a/tests/simple/test-svg-abyss.c
+++ b/tests/simple/test-svg-abyss.c
@@ -91,19 +91,20 @@ test_operation (const char *operation_name)
     gegl_node_connect_to (lower_rect, "output", test_op, "input");
     gegl_node_connect_to (upper_rect, "output", test_op, "aux");
 
-
-    int i;
-    guchar *out = output_with_abyss;
-    for (i = 0; i < out_height; i++)
     {
-      gegl_node_blit (test_op,
-                      1.0,
-                      GEGL_RECTANGLE (0, i, out_width, 1),
-                      format,
-                      out,
-                      GEGL_AUTO_ROWSTRIDE,
-                      0);
-      out += out_width * bpp;
+      int i;
+      guchar *out = output_with_abyss;
+      for (i = 0; i < out_height; i++)
+        {
+          gegl_node_blit (test_op,
+                          1.0,
+                          GEGL_RECTANGLE (0, i, out_width, 1),
+                          format,
+                          out,
+                          GEGL_AUTO_ROWSTRIDE,
+                          0);
+          out += out_width * bpp;
+        }
     }
 
     g_object_unref (ptn);
@@ -165,18 +166,20 @@ test_operation (const char *operation_name)
     gegl_node_connect_to (lower_over, "output", test_op, "input");
     gegl_node_connect_to (upper_over, "output", test_op, "aux");
 
-    int i;
-    guchar *out = output_no_abyss;
-    for (i = 0; i < out_height; i++)
     {
-      gegl_node_blit (test_op,
-                      1.0,
-                      GEGL_RECTANGLE (0, i, out_width, 1),
-                      format,
-                      out,
-                      GEGL_AUTO_ROWSTRIDE,
-                      0);
-      out += out_width * bpp;
+      int i;
+      guchar *out = output_no_abyss;
+      for (i = 0; i < out_height; i++)
+        {
+          gegl_node_blit (test_op,
+                          1.0,
+                          GEGL_RECTANGLE (0, i, out_width, 1),
+                          format,
+                          out,
+                          GEGL_AUTO_ROWSTRIDE,
+                          0);
+          out += out_width * bpp;
+        }
     }
 
     g_object_unref (ptn);
@@ -282,4 +285,4 @@ int main(int argc, char **argv)
   return -1;
 
   return 0;
-}
\ No newline at end of file
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]