Commit f660236a authored by Michael Natterer's avatar Michael Natterer 😴
Browse files

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

parent b77b94d3
......@@ -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);
......
......@@ -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;
......
......@@ -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);
......
......@@ -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;
......
......@@ -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 */
......
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment