Krolyxon
Commit 1c260e7

Branches

Refs →

nsxiv1c260e7

Fix unused-variable warnings in conditionally compiled code

Author
Bert Münnich
Date
2016-12-28 19:16 +0100
Committer
Bert Münnich · 2016-12-28 19:18 +0100
Parent
5fb5d44
Commit
1c260e701b30c95f1be02e5cd3291ebde2a529f4

+3 −4

2 files changed

  1. M Makefile +1 −1
  2. M thumbs.c +2 −3
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION := git-20161201
1+VERSION := git-20161228
22
33 PREFIX := /usr/local
44 MANPREFIX := $(PREFIX)/share/man
M thumbs.c View
@@ -232,11 +232,9 @@ Imlib_Image tns_scale_down(Imlib_Image im, int dim)
232232
233233 bool tns_load(tns_t *tns, int n, bool force, bool cache_only)
234234 {
235− int w, h;
236235 int maxwh = thumb_sizes[ARRLEN(thumb_sizes)-1];
237236 bool cache_hit = false;
238237 char *cfile;
239− float zw, zh;
240238 thumb_t *t;
241239 fileinfo_t *file;
242240 struct stat st;
@@ -273,8 +271,9 @@ bool tns_load(tns_t *tns, int n, bool force, bool cache_only)
273271 }
274272 #if HAVE_LIBEXIF
275273 } else if (!force) {
276− int pw = 0, ph = 0, x = 0, y = 0;
274+ int pw = 0, ph = 0, w, h, x = 0, y = 0;
277275 bool err;
276+ float zw, zh;
278277 ExifData *ed;
279278 ExifEntry *entry;
280279 ExifContent *ifd;