Anonymous committed a6e8a76

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 <>

  • Participants
  • Parent commits f847c07

Comments (0)

Files changed (2)

 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)
 	die("index file corrupt");
-int discard_cache()
+int discard_cache(void)
 	int ret;