From 3d958064e0f26f3cbd5b201f295c182b6aa119da Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sat, 18 Jun 2005 20:02:49 -0700 Subject: [PATCH] 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. --- rev-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.26.2