1. Stefan Saasen
  2. git


Rene Scharfe  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 <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>

  • Participants
  • Parent commits f847c07
  • Branches master

Comments (0)

Files changed (2)

File index-pack.c

View file
  • Ignore whitespace
 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)

File read-cache.c

View file
  • Ignore whitespace
 	die("index file corrupt");
-int discard_cache()
+int discard_cache(void)
 	int ret;