nsxiv1c260e7
Fix unused-variable warnings in conditionally compiled code
+3 −4
2 files changed
| @@ -1,4 +1,4 @@ | |||
| 1 | − | VERSION := git-20161201 | |
| 1 | + | VERSION := git-20161228 | |
| 2 | 2 | ||
| 3 | 3 | PREFIX := /usr/local | |
| 4 | 4 | MANPREFIX := $(PREFIX)/share/man | |
| @@ -232,11 +232,9 @@ Imlib_Image tns_scale_down(Imlib_Image im, int dim) | |||
| 232 | 232 | ||
| 233 | 233 | bool tns_load(tns_t *tns, int n, bool force, bool cache_only) | |
| 234 | 234 | { | |
| 235 | − | int w, h; | |
| 236 | 235 | int maxwh = thumb_sizes[ARRLEN(thumb_sizes)-1]; | |
| 237 | 236 | bool cache_hit = false; | |
| 238 | 237 | char *cfile; | |
| 239 | − | float zw, zh; | |
| 240 | 238 | thumb_t *t; | |
| 241 | 239 | fileinfo_t *file; | |
| 242 | 240 | struct stat st; | |
| @@ -273,8 +271,9 @@ bool tns_load(tns_t *tns, int n, bool force, bool cache_only) | |||
| 273 | 271 | } | |
| 274 | 272 | #if HAVE_LIBEXIF | |
| 275 | 273 | } 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; | |
| 277 | 275 | bool err; | |
| 276 | + | float zw, zh; | |
| 278 | 277 | ExifData *ed; | |
| 279 | 278 | ExifEntry *entry; | |
| 280 | 279 | ExifContent *ifd; | |