From 3a22e6a6c5ad10e8c5cb9abb3615d2a8867d63e9 Mon Sep 17 00:00:00 2001 From: N-R-K Date: Tue, 3 May 2022 15:36:57 +0000 Subject: Declare every extern function/variable in `nsxiv.h` (#268) with a couple exceptions as they cause too many -Wshadow warnings. also moves the `extcmd_t` typedef on top for cosmetic purposes. also enable `-Wmissing-prototypes` in the ci --- thumbs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'thumbs.c') diff --git a/thumbs.c b/thumbs.c index b4c2de3..52820d4 100644 --- a/thumbs.c +++ b/thumbs.c @@ -31,9 +31,7 @@ #if HAVE_LIBEXIF #include -void exif_auto_orientate(const fileinfo_t*); #endif -Imlib_Image img_open(const fileinfo_t*); static char *cache_dir; @@ -143,7 +141,7 @@ void tns_clean_cache(void) r_closedir(&dir); } -void tns_init(tns_t *tns, fileinfo_t *files, const int *cnt, int *sel, win_t *win) +void tns_init(tns_t *tns, fileinfo_t *tns_files, const int *cnt, int *sel, win_t *win) { int len; const char *homedir, *dsuffix = ""; @@ -152,7 +150,7 @@ void tns_init(tns_t *tns, fileinfo_t *files, const int *cnt, int *sel, win_t *wi tns->thumbs = ecalloc(*cnt, sizeof(thumb_t)); else tns->thumbs = NULL; - tns->files = files; + tns->files = tns_files; tns->cnt = cnt; tns->initnext = tns->loadnext = 0; tns->first = tns->end = tns->r_first = tns->r_end = 0; -- cgit v1.2.3