ref-filter.c: drop return from void function
authorAlejandro R. Sedeño <asedeno@mit.edu>
Mon, 10 Jul 2017 19:03:03 +0000 (15:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Jul 2017 19:34:51 +0000 (12:34 -0700)
Sun's C compiler errors out on this pattern:

void foo() { ... }
void bar() { return foo(); }

Signed-off-by: Alejandro R. Sedeño <asedeno@mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c
index f4c68237275d49af3f1665f40788bc8287e3f879..238888e4de342c601b26650251a235ffeb3190f2 100644 (file)
@@ -220,7 +220,7 @@ static void objectname_atom_parser(struct used_atom *atom, const char *arg)
 
 static void refname_atom_parser(struct used_atom *atom, const char *arg)
 {
-       return refname_atom_parser_internal(&atom->u.refname, arg, atom->name);
+       refname_atom_parser_internal(&atom->u.refname, arg, atom->name);
 }
 
 static align_type parse_align_position(const char *s)