Commit ff65872f authored by Ken Thompson's avatar Ken Thompson

function wo return is an error - not warning

R=r
OCL=15169
CL=15169
parent 0ba1db74
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment