sparse fix: non-ANSI function declaration
PATCH 1/1 sparse fix: non-ANSI function declaration
The declaration of discard_cache() in cache.h already has its "void".
Signed-off-by Rene Scharfe <[email protected]>
--- index-pack.c | 2 +- read-cache.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
index-pack.c +1 -1
@@ -90,7 +90,7 @@ static SHA_CTX input_ctx;static int input_fd, output_fd, mmap_fd;/* Discard current buffer used content. */ -static void flush () +static void flush (void ) {if (input_offset) {if (output_fd >=0 )
read-cache.c +1 -1
@@ -844,7 +844,7 @@ unmap:die ("index file corrupt" ); } -int discard_cache () +int discard_cache (void ) {int ret;
Signature · 1 line
1.4.4