From: Rene Scharfe Date: Sat, 18 Nov 2006 12:07:06 +0000 (+0100) Subject: sparse fix: non-ANSI function declaration X-Git-Tag: v1.4.4.1~13 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a6e8a7677055e092424db42c044774bc6dbd74f6;p=git.git sparse fix: non-ANSI function declaration The declaration of discard_cache() in cache.h already has its "void". Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/index-pack.c b/index-pack.c index 042aea884..8331d99a6 100644 --- a/index-pack.c +++ b/index-pack.c @@ -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) diff --git a/read-cache.c b/read-cache.c index 97c38670b..0f5fb5bc3 100644 --- a/read-cache.c +++ b/read-cache.c @@ -844,7 +844,7 @@ unmap: die("index file corrupt"); } -int discard_cache() +int discard_cache(void) { int ret;