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>
This commit is contained in:
parent
f847c07b9a
commit
a6e8a76770
@ -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)
|
||||
|
@ -844,7 +844,7 @@ unmap:
|
||||
die("index file corrupt");
|
||||
}
|
||||
|
||||
int discard_cache()
|
||||
int discard_cache(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user