summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-19 03:02:49 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-19 03:02:49 (GMT)
commit3d958064e0f26f3cbd5b201f295c182b6aa119da (patch)
treee9f48b3cfb5ad4e025bf5f3ee4deefad35a54e5c
parentdeb153a75ae1f5eca628a38b911474a69edd242d (diff)
downloadgit-3d958064e0f26f3cbd5b201f295c182b6aa119da.zip
git-3d958064e0f26f3cbd5b201f295c182b6aa119da.tar.gz
git-3d958064e0f26f3cbd5b201f295c182b6aa119da.tar.bz2
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.
-rw-r--r--rev-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rev-list.c b/rev-list.c
index c7ebd2f..6e6a6df 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;