summaryrefslogtreecommitdiffstats
path: root/thumbs.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2016-12-28 19:16:19 +0100
committerBert Münnich <ber.t@posteo.de>2016-12-28 19:18:16 +0100
commit1c260e701b30c95f1be02e5cd3291ebde2a529f4 (patch)
tree10af102d5168469ebc607cf372c3ff2831d094e8 /thumbs.c
parent5fb5d44cffe1ea37a1497db3939cf3d5078c6c46 (diff)
downloadnsxiv-1c260e701b30c95f1be02e5cd3291ebde2a529f4.tar.zst
Fix unused-variable warnings in conditionally compiled code
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/thumbs.c b/thumbs.c
index 43bb50c..4f6c181 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -232,11 +232,9 @@ Imlib_Image tns_scale_down(Imlib_Image im, int dim)
bool tns_load(tns_t *tns, int n, bool force, bool cache_only)
{
- int w, h;
int maxwh = thumb_sizes[ARRLEN(thumb_sizes)-1];
bool cache_hit = false;
char *cfile;
- float zw, zh;
thumb_t *t;
fileinfo_t *file;
struct stat st;
@@ -273,8 +271,9 @@ bool tns_load(tns_t *tns, int n, bool force, bool cache_only)
}
#if HAVE_LIBEXIF
} else if (!force) {
- int pw = 0, ph = 0, x = 0, y = 0;
+ int pw = 0, ph = 0, w, h, x = 0, y = 0;
bool err;
+ float zw, zh;
ExifData *ed;
ExifEntry *entry;
ExifContent *ifd;