[gimp] gfig: mute compiler warnings



commit 8b995fc76dd44d1b64e66bdb4c6f666219a2b7ac
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Thu Feb 16 17:57:05 2012 +0100

    gfig: mute compiler warnings

 plug-ins/gfig/gfig-arc.c    |    7 +++----
 plug-ins/gfig/gfig-poly.c   |   10 +---------
 plug-ins/gfig/gfig-spiral.c |    2 --
 3 files changed, 4 insertions(+), 15 deletions(-)
---
diff --git a/plug-ins/gfig/gfig-arc.c b/plug-ins/gfig/gfig-arc.c
index 8c432f9..ef1c59b 100644
--- a/plug-ins/gfig/gfig-arc.c
+++ b/plug-ins/gfig/gfig-arc.c
@@ -199,8 +199,8 @@ arc_details (GdkPoint *vert_a,
   double sum_sides2;
   double area;
   double circumcircle_R;
-  double line1_grad, line1_const;
-  double line2_grad, line2_const;
+  double line1_grad = 0, line1_const = 0;
+  double line2_grad = 0, line2_const = 0;
   double inter_x = 0.0, inter_y = 0.0;
   int    got_x = 0, got_y = 0;
 
@@ -474,7 +474,7 @@ d_paint_arc (GfigObject *obj)
   gdouble  ang_loop;
   gdouble  radius;
   gint     loop;
-  GdkPoint first_pnt, last_pnt = { 0, 0 };
+  GdkPoint last_pnt = { 0, 0 };
   gboolean first = TRUE;
   GdkPoint center_pnt;
   gdouble  minang, arcang;
@@ -533,7 +533,6 @@ d_paint_arc (GfigObject *obj)
 
       if (first)
         {
-          first_pnt = calc_pnt;
           first = FALSE;
         }
     }
diff --git a/plug-ins/gfig/gfig-poly.c b/plug-ins/gfig/gfig-poly.c
index ae74a4e..4b48048 100644
--- a/plug-ins/gfig/gfig-poly.c
+++ b/plug-ins/gfig/gfig-poly.c
@@ -147,7 +147,7 @@ d_paint_poly (GfigObject *obj)
   /* first point center */
   /* Next point is radius */
   gdouble    *line_pnts;
-  gint        seg_count = 0;
+  gint        seg_count;
   gint        i = 0;
   DobjPoints *center_pnt;
   DobjPoints *radius_pnt;
@@ -271,7 +271,6 @@ d_poly2lines (GfigObject *obj)
 {
   /* first point center */
   /* Next point is radius */
-  gint        seg_count = 0;
   DobjPoints *center_pnt;
   DobjPoints *radius_pnt;
   gint16      shift_x;
@@ -287,9 +286,6 @@ d_poly2lines (GfigObject *obj)
 
   g_assert (obj != NULL);
 
-  /* count - add one to close polygon */
-  seg_count = obj->type_data + 1;
-
   center_pnt = obj->points;
 
   if (!center_pnt)
@@ -358,7 +354,6 @@ d_star2lines (GfigObject *obj)
 {
   /* first point center */
   /* Next point is radius */
-  gint        seg_count = 0;
   DobjPoints *center_pnt;
   DobjPoints *outer_radius_pnt;
   DobjPoints *inner_radius_pnt;
@@ -376,9 +371,6 @@ d_star2lines (GfigObject *obj)
 
   g_assert (obj != NULL);
 
-  /* count - add one to close polygon */
-  seg_count = 2 * obj->type_data + 1;
-
   center_pnt = obj->points;
 
   if (!center_pnt)
diff --git a/plug-ins/gfig/gfig-spiral.c b/plug-ins/gfig/gfig-spiral.c
index 2d461b0..5eba459 100644
--- a/plug-ins/gfig/gfig-spiral.c
+++ b/plug-ins/gfig/gfig-spiral.c
@@ -72,7 +72,6 @@ d_draw_spiral (GfigObject *obj,
   gdouble     sp_cons;
   gint        loop;
   GdkPoint    start_pnt = { 0, 0 };
-  GdkPoint    first_pnt;
   gboolean    do_line = FALSE;
   gint        clock_wise = 1;
 
@@ -147,7 +146,6 @@ d_draw_spiral (GfigObject *obj,
       else
         {
           do_line = TRUE;
-          first_pnt = calc_pnt;
         }
       start_pnt = calc_pnt;
     }



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