Skip to content

Commit

Permalink
sparse fix: non-ANSI function declaration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rene Scharfe authored and Junio C Hamano committed Nov 18, 2006
1 parent f847c07 commit a6e8a76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion read-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ int read_cache_from(const char *path)
die("index file corrupt");
}

int discard_cache()
int discard_cache(void)
{
int ret;

Expand Down

0 comments on commit a6e8a76

Please sign in to comment.