Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-04-28 21:13:01 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-28 21:13:01 +0400
commitb836825b55d59ea3dde5c495cc03ff9343c2b485 (patch)
tree66b98edfd982e085d03bd554010651b22f9cfb8c /diff-cache.c
parent532149d72735b4c5035f73abd06f3995c6303acf (diff)
[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>
Diffstat (limited to 'diff-cache.c')
-rw-r--r--diff-cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/diff-cache.c b/diff-cache.c
index 6b0b2a9bee..e365f713fa 100644
--- a/diff-cache.c
+++ b/diff-cache.c
@@ -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);
}