Skip to content

Commit

Permalink
Avoid warning about function without return.
Browse files Browse the repository at this point in the history
Strangely, this warning only shows up when not compiling with "-O2",
which is why I didn't see it originally.
  • Loading branch information
Linus Torvalds committed Jun 19, 2005
1 parent deb153a commit 3d95806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rev-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3d95806

Please sign in to comment.