Fix several 'reaches end of function' warnings by making fatal noreturn.

The warnings also pointed out a few genuine bugs. Replace some tabs with
spaces.
This commit is contained in:
Christian Kamm 2009-11-06 21:51:41 +01:00
parent 0db459fad0
commit 64a8e47ad6
5 changed files with 31 additions and 20 deletions

View file

@ -456,7 +456,9 @@ DValue* DtoCastComplex(Loc& loc, DValue* val, Type* _to)
DImValue* re = new DImValue(extractty, repart);
return DtoCastFloat(loc, re, to);
}
else
else {
error(loc, "Don't know how to cast %s to %s", vty->toChars(), to->toChars());
fatal();
}
}