summaryrefslogtreecommitdiffstats
path: root/rev-list.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-19 05:02:49 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-19 05:02:49 +0200
commit3d958064e0f26f3cbd5b201f295c182b6aa119da (patch)
treee9f48b3cfb5ad4e025bf5f3ee4deefad35a54e5c /rev-list.c
parent[PATCH] cvs2git and file permissions (diff)
downloadgit-3d958064e0f26f3cbd5b201f295c182b6aa119da.tar.xz
git-3d958064e0f26f3cbd5b201f295c182b6aa119da.zip
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;