threads / patch / 46348

patchref-filter.c: drop return from void function

Subject: [PATCH] ref-filter.c: drop return from void function

## tl;dr

One message between Jul 10, 2017 and Jul 10, 2017. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Alejandro R. Sedeño· Jul 10, 2017, 19:03 UTC · lore
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>
---
 ref-filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to ref-filter.c +1 −1
diff --git a/ref-filter.c b/ref-filter.c
index 2cc7b01..467c027 100644
--- a/ref-filter.c
+++ b/ref-filter.c
@@ -221,7 +221,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)
-- 
2.1.4

← back to recent threads