diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-19 05:02:49 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-19 05:02:49 +0200 |
commit | 3d958064e0f26f3cbd5b201f295c182b6aa119da (patch) | |
tree | e9f48b3cfb5ad4e025bf5f3ee4deefad35a54e5c | |
parent | [PATCH] cvs2git and file permissions (diff) | |
download | git-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.
-rw-r--r-- | rev-list.c | 2 |
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; |