Skip to content

Commit

Permalink
[PATCH] diff-cache.c compilation warning fix.
Browse files Browse the repository at this point in the history
Nobody uses return value from show_new_file() function but it is
defined as returning int and falls off at the end without
returning.  Make it void.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Junio C Hamano authored and Linus Torvalds committed Apr 28, 2005
1 parent 532149d commit b836825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diff-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ static int get_stat_data(struct cache_entry *ce, unsigned char **sha1p, unsigned
return 0;
}

static int show_new_file(struct cache_entry *new)
static void show_new_file(struct cache_entry *new)
{
unsigned char *sha1;
unsigned int mode;

/* New file in the index: it might actually be different in the working copy */
if (get_stat_data(new, &sha1, &mode) < 0)
return -1;
return;

show_file("+", new, sha1, mode);
}
Expand Down

0 comments on commit b836825

Please sign in to comment.