Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
Fix unused-variable warnings in conditionally compiled code
Browse files Browse the repository at this point in the history
  • Loading branch information
xyb3rt committed Dec 28, 2016
1 parent 5fb5d44 commit 1c260e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
@@ -1,4 +1,4 @@
VERSION := git-20161201
VERSION := git-20161228

PREFIX := /usr/local
MANPREFIX := $(PREFIX)/share/man
Expand Down
5 changes: 2 additions & 3 deletions thumbs.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1c260e7

Please sign in to comment.