diff options
author | orbea <orbea@riseup.net> | 2022-10-16 09:04:55 -0700 |
---|---|---|
committer | Daniel Friesel <derf@chaosdorf.de> | 2023-01-22 08:57:01 +0100 |
commit | afca52d96eb43e6ceec4e6976b1f90c367df27c9 (patch) | |
tree | 64ee5dd8c731b4c031ce29a1b638a2767e509718 /src/filelist.c | |
parent | d65f3ba146fa7a6ccad2f3c1233becfda1c22b69 (diff) |
src: Fix build with clang 16
These are no longer supported in upcoming clang versions.
warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
Reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
Diffstat (limited to 'src/filelist.c')
-rw-r--r-- | src/filelist.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/filelist.c b/src/filelist.c index 811151e..8da6e58 100644 --- a/src/filelist.c +++ b/src/filelist.c @@ -37,7 +37,6 @@ gib_list *filelist = NULL; gib_list *original_file_items = NULL; /* original file items from argv */ int filelist_len = 0; gib_list *current_file = NULL; -extern int errno; static gib_list *rm_filelist = NULL; @@ -156,7 +155,7 @@ static void feh_print_stat_error(char *path) } } -static void add_stdin_to_filelist() +static void add_stdin_to_filelist(void) { char buf[1024]; size_t readsize; @@ -657,7 +656,7 @@ char *feh_absolute_path(char *path) return(ret); } -void feh_save_filelist() +void feh_save_filelist(void) { char *tmpname; char *base_dir = ""; |