sparse fix: non-ANSI function declaration
The declaration of discard_cache() in cache.h already has its "void".
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff --git a/index-pack.c b/index-pack.c
index 042aea8..8331d99 100644
--- a/index-pack.c
+++ b/index-pack.c
@@ -90,7 +90,7 @@
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 97c3867..0f5fb5b 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -844,7 +844,7 @@
die("index file corrupt");
}
-int discard_cache()
+int discard_cache(void)
{
int ret;