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:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-19 07:02:49 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-19 07:02:49 +0400
commit3d958064e0f26f3cbd5b201f295c182b6aa119da (patch)
treee9f48b3cfb5ad4e025bf5f3ee4deefad35a54e5c /rev-list.c
parentdeb153a75ae1f5eca628a38b911474a69edd242d (diff)
Avoid warning about function without return.
Strangely, this warning only shows up when not compiling with "-O2", which is why I didn't see it originally.
Diffstat (limited to 'rev-list.c')
-rw-r--r--rev-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rev-list.c b/rev-list.c
index c7ebd2f03c..6e6a6dfecd 100644
--- a/rev-list.c
+++ b/rev-list.c
@@ -149,7 +149,7 @@ static int count_distance(struct commit_list *entry)
return nr;
}
-static int clear_distance(struct commit_list *list)
+static void clear_distance(struct commit_list *list)
{
while (list) {
struct commit *commit = list->item;