Avoid warning about function without return.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 19 Jun 2005 03:02:49 +0000 (20:02 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 19 Jun 2005 03:02:49 +0000 (20:02 -0700)
Strangely, this warning only shows up when not compiling with "-O2",
which is why I didn't see it originally.

rev-list.c

index c7ebd2f03cd578ea0f21c3e4037e955a11b2c165..6e6a6dfecd72c4380f7248ff61fc607ffc1dbfc2 100644 (file)
@@ -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;