Skip to contentSkip to conversation

Fix warning about non-void return in a void function.

PATCH New A Large Angry SCM 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix warning about non-void return in a void function.

[PATCH] Fix warning about non-void return in a void function.

---

 receive-pack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

8eda2e60f24221255b77e48f4dd60e2b025839ed

receive-pack.c +1 -1
@@ -186,7 +186,7 @@ static void unpack(void)
 	int code = run_command(unpacker, NULL);
 	switch (code) {
 	case 0:
-		return 0;
+		return;
 	case -ERR_RUN_COMMAND_FORK:
 		die("unpack fork failed");
 	case -ERR_RUN_COMMAND_EXEC: