OSDN Git Service

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 c7ebd2f..6e6a6df 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;