[babl] babl_fish_path_fitness: gcc6: fix -Wmisleading-indentation warnings



commit 23222abe8808c012d668ba10b22e73620f9c02d0
Author: Roman Lebedev <lebedev ri gmail com>
Date:   Fri Aug 26 13:16:51 2016 +0300

    babl_fish_path_fitness: gcc6: fix -Wmisleading-indentation warnings

 tests/babl_fish_path_fitness.c |   54 +++++++++++++++++++++++++++++++++++----
 1 files changed, 48 insertions(+), 6 deletions(-)
---
diff --git a/tests/babl_fish_path_fitness.c b/tests/babl_fish_path_fitness.c
index 7ac4f26..93e1287 100644
--- a/tests/babl_fish_path_fitness.c
+++ b/tests/babl_fish_path_fitness.c
@@ -84,16 +84,58 @@ int main (void)
 
   babl_set_extender (babl_extension_quiet_log ());
   babl_format_class_for_each (source_each, NULL);
+
   {
     int i;
 
-    for (i = 0; i < babl_formats_count (); i++) printf ("|");printf ("\n");
-    for (i = 0; i < babl_formats_count (); i++) if (i / 100 == 0) printf ("|");else printf ("%i", (i / 100) 
% 10);printf ("\n");
-    for (i = 0; i < babl_formats_count (); i++) if (i / 10 == 0) printf ("|");else printf ("%i", (i / 10) % 
10);printf ("\n");
-    /* for (i=0;i<babl_formats_count ();i++) printf ("│"); printf ("\n");
-       for (i=0;i<babl_formats_count ();i++) if (i/10==0) printf("│"); else printf ("%i", (i/10)%10); printf 
("\n");*/
-    for (i = 0; i < babl_formats_count (); i++) printf ("%i", (i) % 10);printf ("\n");
+    for (i = 0; i < babl_formats_count (); i++)
+      printf ("|");
+
+    printf ("\n");
+
+    for (i = 0; i < babl_formats_count (); i++)
+      {
+        if (i / 100 == 0)
+          printf ("|");
+        else
+          printf ("%i", (i / 100) % 10);
+      }
+
+    printf ("\n");
+
+    for (i = 0; i < babl_formats_count (); i++)
+      {
+        if (i / 10 == 0)
+          printf ("|");
+        else
+          printf ("%i", (i / 10) % 10);
+      }
+
+    printf ("\n");
+
+    /*
+    for (i = 0; i < babl_formats_count (); i++)
+      printf ("│");
+
+    printf ("\n");
+
+    for (i = 0; i < babl_formats_count (); i++)
+      {
+        if (i / 10 == 0)
+          printf ("│");
+        else
+          printf ("%i", (i / 10) % 10);
+      }
+
+    printf ("\n");
+    */
+
+    for (i = 0; i < babl_formats_count (); i++)
+      printf ("%i", (i) % 10);
+
+    printf ("\n");
   }
+
   printf ("total length: %i\n", total_length);
   printf ("total cost  : %i\n", total_cost);
   /*printf ("ok / total : %i %i %f\n", ok, total, (1.0*ok) / total);


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