[gimp] plug-ins: remove some -Wunused-but-set-variable



commit f660236a4fa5069cb4cf2b93b841d6dd2477237e
Author: Michael Natterer <mitch gimp org>
Date:   Thu May 5 12:49:38 2011 +0200

    plug-ins: remove some -Wunused-but-set-variable

 plug-ins/common/sharpen.c                |    2 --
 plug-ins/common/tile-seamless.c          |    4 +---
 plug-ins/common/tile-small.c             |   10 ++++------
 plug-ins/common/value-propagate.c        |    3 ---
 plug-ins/file-fits/fits.c                |    4 ----
 plug-ins/script-fu/script-fu-interface.c |    2 --
 6 files changed, 5 insertions(+), 20 deletions(-)
---
diff --git a/plug-ins/common/sharpen.c b/plug-ins/common/sharpen.c
index d86b188..113a99b 100644
--- a/plug-ins/common/sharpen.c
+++ b/plug-ins/common/sharpen.c
@@ -281,7 +281,6 @@ sharpen (GimpDrawable *drawable)
   gint          width;          /* Byte width of the image */
   gint          x1;             /* Selection bounds */
   gint          y1;
-  gint          x2;
   gint          y2;
   gint          sel_width;      /* Selection width */
   gint          sel_height;     /* Selection height */
@@ -294,7 +293,6 @@ sharpen (GimpDrawable *drawable)
                                       &x1, &y1, &sel_width, &sel_height))
     return;
 
-  x2 = x1 + sel_width;
   y2 = y1 + sel_height;
 
   img_bpp = gimp_drawable_bpp (drawable->drawable_id);
diff --git a/plug-ins/common/tile-seamless.c b/plug-ins/common/tile-seamless.c
index a832d15..82cfbbc 100644
--- a/plug-ins/common/tile-seamless.c
+++ b/plug-ins/common/tile-seamless.c
@@ -200,7 +200,7 @@ tile_region (GimpDrawable *drawable,
   gint          bpp;
   gint          wodd, hodd;
   gint          w, h, x, y;
-  gint          rgn1_x, rgn2_x, off_x;
+  gint          rgn1_x, rgn2_x;
   static gint   progress = 0;
   gint          max_progress;
   GimpPixelRgn  src1_rgn, src2_rgn, dest1_rgn, dest2_rgn;
@@ -224,13 +224,11 @@ tile_region (GimpDrawable *drawable,
     {
       rgn1_x = x1;
       rgn2_x = x1 + w + wodd;
-      off_x = w + wodd;
     }
   else
     {
       rgn1_x = x1 + w + wodd;
       rgn2_x = x1;
-      off_x = -w - wodd;
     }
 
   asymmetry_correction = !wodd && !left;
diff --git a/plug-ins/common/tile-small.c b/plug-ins/common/tile-small.c
index caad043..f2a12cf 100644
--- a/plug-ins/common/tile-small.c
+++ b/plug-ins/common/tile-small.c
@@ -979,12 +979,10 @@ do_tiles(void)
 
           for (col = dest_rgn.x; col < (dest_rgn.x + dest_rgn.w); col++)
             {
-              gint an_action;
-
-              an_action = tiles_xy (sel_width,
-                                    sel_height,
-                                    col-sel_x1,row-sel_y1,
-                                    &nc,&nr);
+              tiles_xy (sel_width,
+                        sel_height,
+                        col-sel_x1,row-sel_y1,
+                        &nc,&nr);
 
               gimp_pixel_fetcher_get_pixel (pft, nc + sel_x1, nr + sel_y1,
                                             pixel);
diff --git a/plug-ins/common/value-propagate.c b/plug-ins/common/value-propagate.c
index 7d33c61..6d80607 100644
--- a/plug-ins/common/value-propagate.c
+++ b/plug-ins/common/value-propagate.c
@@ -913,7 +913,6 @@ set_foreground_to_peak (GimpImageType  image_type,
                         void          *tmp)
 {
   gint  value_chs = 0;
-  gint  alpha = 0;
   gint  ch;
   MiddlePacket  *data;
 
@@ -933,14 +932,12 @@ set_foreground_to_peak (GimpImageType  image_type,
       break;
     case GIMP_RGBA_IMAGE:
       value_chs = 3;
-      alpha = 3;
       break;
     case GIMP_GRAY_IMAGE:
       value_chs = 1;
       break;
     case GIMP_GRAYA_IMAGE:
       value_chs = 1;
-      alpha = 1;
       break;
     default:
       break;
diff --git a/plug-ins/file-fits/fits.c b/plug-ins/file-fits/fits.c
index eb9a560..94851ea 100644
--- a/plug-ins/file-fits/fits.c
+++ b/plug-ins/file-fits/fits.c
@@ -780,11 +780,9 @@ save_direct (FITS_FILE *ofp,
   guchar *data, *src;
   GimpPixelRgn pixel_rgn;
   GimpDrawable *drawable;
-  GimpImageType drawable_type;
   FITS_HDU_LIST *hdu;
 
   drawable = gimp_drawable_get (drawable_ID);
-  drawable_type = gimp_drawable_type (drawable_ID);
   width = drawable->width;
   height = drawable->height;
   bpp = drawable->bpp;       /* Bytes per pixel */
@@ -871,13 +869,11 @@ save_index (FITS_FILE *ofp,
   guchar *channels[3];
   GimpPixelRgn pixel_rgn;
   GimpDrawable *drawable;
-  GimpImageType drawable_type;
   FITS_HDU_LIST *hdu;
 
   channels[0] = red;   channels[1] = green;   channels[2] = blue;
 
   drawable = gimp_drawable_get (drawable_ID);
-  drawable_type = gimp_drawable_type (drawable_ID);
   width = drawable->width;
   height = drawable->height;
   bpp = drawable->bpp;       /* Bytes per pixel */
diff --git a/plug-ins/script-fu/script-fu-interface.c b/plug-ins/script-fu/script-fu-interface.c
index c368905..bff875b 100644
--- a/plug-ins/script-fu/script-fu-interface.c
+++ b/plug-ins/script-fu/script-fu-interface.c
@@ -174,7 +174,6 @@ script_fu_interface (SFScript  *script,
                      gint       start_arg)
 {
   GtkWidget    *dialog;
-  GtkWidget    *menu;
   GtkWidget    *vbox;
   GtkWidget    *vbox2;
   GtkSizeGroup *group;
@@ -321,7 +320,6 @@ script_fu_interface (SFScript  *script,
               break;
 
             default:
-              menu = NULL;
               break;
             }
 



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