git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Alejandro R. Sedeño <asedeno@mit.edu>
Date
Jul 10, 2017, 19:03 UTC
Message-ID
<1499713383-15752-1-git-send-email-asedeno@mit.edu>
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(-)
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
Message 1 of 1 in “ref-filter.c: drop return from void function”
  1. ref-filter.c: drop return from void functionAlejandro R. Sedeño, Jul 10, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.