Skip to contentSkip to conversation

sandbox: fix compiler warning

PATCH Superseded Allen Martin 1 participant 1 message Jan 22, 2013

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sandbox: fix compiler warning

Add back return statement to fix compiler warning about control flow reaching end of non void function that was introduced with:

fec79ac sandbox: drop unused return

---
 arch/sandbox/cpu/start.c |    3 +++
 1 file changed, 3 insertions(+)
arch/sandbox/cpu/start.c +3 -0
index 7603bf9..5287fd5 100644
@@ -122,4 +122,7 @@ int main(int argc, char *argv[])
 	 * never return.
 	 */
 	board_init_f(0);
+
+	/* NOTREACHED - board_init_f() does not return */
+	return 0;
 }
Signature · 1 line
1.7.10.4