summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/gc/walk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c
index abb7ce0bd..8850867db 100644
--- a/src/cmd/gc/walk.c
+++ b/src/cmd/gc/walk.c
@@ -54,7 +54,7 @@ walk(Node *fn)
}
if(curfn->type->outtuple)
if(walkret(curfn->nbody))
- warn("function ends without a return statement");
+ yyerror("function ends without a return statement");
walkstate(curfn->nbody);
if(debug['W']) {
snprint(s, sizeof(s), "after %S", curfn->nname->sym);