diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-18 20:02:49 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-18 20:02:49 -0700 |
commit | 3d958064e0f26f3cbd5b201f295c182b6aa119da (patch) | |
tree | e9f48b3cfb5ad4e025bf5f3ee4deefad35a54e5c /rev-list.c | |
parent | deb153a75ae1f5eca628a38b911474a69edd242d (diff) | |
download | git-3d958064e0f26f3cbd5b201f295c182b6aa119da.tar.gz git-3d958064e0f26f3cbd5b201f295c182b6aa119da.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rev-list.c b/rev-list.c index c7ebd2f03..6e6a6dfec 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; |