[gimp] plug-ins: fix unused variable warnings in tiff load and save
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: fix unused variable warnings in tiff load and save
- Date: Fri, 30 Aug 2013 21:06:31 +0000 (UTC)
commit d8d99e9ede7a893c692993eec3ad3a68e0aeedf4
Author: Michael Natterer <mitch gimp org>
Date: Fri Aug 30 23:04:40 2013 +0200
plug-ins: fix unused variable warnings in tiff load and save
plug-ins/common/file-tiff-load.c | 6 ++++--
plug-ins/common/file-tiff-save.c | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/common/file-tiff-load.c b/plug-ins/common/file-tiff-load.c
index 1ba1882..b5d966c 100644
--- a/plug-ins/common/file-tiff-load.c
+++ b/plug-ins/common/file-tiff-load.c
@@ -525,9 +525,7 @@ load_image (const gchar *filename,
gushort extra, *extra_types;
channel_data *channel = NULL;
- gushort *redmap, *greenmap, *bluemap;
GimpRGB color;
- guchar cmap[768];
uint16 planar = PLANARCONFIG_CONTIG;
@@ -968,6 +966,8 @@ load_image (const gchar *filename,
/* Install colormap for INDEXED images only */
if (image_type == GIMP_INDEXED)
{
+ guchar cmap[768];
+
if (is_bw)
{
if (photomet == PHOTOMETRIC_MINISWHITE)
@@ -983,6 +983,8 @@ load_image (const gchar *filename,
}
else
{
+ gushort *redmap, *greenmap, *bluemap;
+
if (!TIFFGetField (tif, TIFFTAG_COLORMAP,
&redmap, &greenmap, &bluemap))
{
diff --git a/plug-ins/common/file-tiff-save.c b/plug-ins/common/file-tiff-save.c
index 19ca62d..c5a18e9 100644
--- a/plug-ins/common/file-tiff-save.c
+++ b/plug-ins/common/file-tiff-save.c
@@ -664,7 +664,7 @@ save_image (const gchar *filename,
gushort red[256];
gushort grn[256];
gushort blu[256];
- gint cols, col, rows, row, i;
+ gint cols, rows, row, i;
glong rowsperstrip;
gushort compression;
gushort extra_samples[1];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]