From: Linus Torvalds Date: Sun, 19 Jun 2005 03:02:49 +0000 (-0700) Subject: Avoid warning about function without return. X-Git-Tag: v0.99~252 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3d958064e0f26f3cbd5b201f295c182b6aa119da;p=git.git 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. --- diff --git a/rev-list.c b/rev-list.c index c7ebd2f0..6e6a6dfe 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;