[gimp] libgimpwidgets: fix "warning: excess elements in array initializer".



commit e512f0f1b765ff4df3533a2a0c73561a8a068ce3
Author: Jehan <jehan girinstud io>
Date:   Sun Jun 23 19:07:32 2019 +0200

    libgimpwidgets: fix "warning: excess elements in array initializer".
    
    Just fixing stupid bugs in my previous commit. These are fixed array
    sizes.

 libgimpwidgets/gimpruler.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/libgimpwidgets/gimpruler.c b/libgimpwidgets/gimpruler.c
index 9a898e0676..730dfc3880 100644
--- a/libgimpwidgets/gimpruler.c
+++ b/libgimpwidgets/gimpruler.c
@@ -98,18 +98,18 @@ static const RulerMetric ruler_metric_inches =
   { 1, 2, 6, 12, 36, 72, 100, 250, 500, 1000, 2500, 5000, 10000, 25000, 50000, 100000 },
 
   /* Inches are divided by multiples of 2. */
-  { 1, 2, 4, 8, 16, 32, 64, 128, 256 }
+  { 1, 2, 4, 8, 16 }
 };
 
 static const RulerMetric ruler_metric_feet =
 {
   /* 3 feet = 1 yard; 6 feet = 1 fathom */
-  { 1, 3, 6, 12, 36, 100, 250, 500, 1000, 2500, 5000, 10000, 25000, 50000, 100000 },
+  { 1, 3, 6, 12, 36, 72, 100, 250, 500, 1000, 2500, 5000, 10000, 25000, 50000, 100000 },
 
-  /* 1 foot = 12 inches, so let's divide up to 12. */
+  /* 1 foot = 12 inches, so let's divide up to 12, */
   { 1, 3, 6, 12,
-  /* then since inches are divided by 2, continue by 2-divisions. */
-    24, 48, 96, 192 }
+  /* then divide the inch by 2. */
+    24 }
 };
 
 static const RulerMetric ruler_metric_yards =
@@ -118,9 +118,7 @@ static const RulerMetric ruler_metric_yards =
   { 1, 2, 5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, 10000, 25000, 50000, 100000 },
 
   /* 1 yard = 3 feet = 36 inches. */
-  { 1, 3, 6, 12, 36,
-  /* Then divide by 2, inch style */
-    72, 144, 288 }
+  { 1, 3, 6, 12, 36 }
 };
 
 


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