[PATCH] diff-cache.c compilation warning fix.

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>
This commit is contained in:
Junio C Hamano 2005-04-28 10:13:01 -07:00 коммит произвёл Linus Torvalds
Родитель 532149d727
Коммит b836825b55
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);
}