[fpc-devel] Unreachable code warnings
Joao Morais
post at joaomorais.com.br
Sun Oct 14 23:39:33 CEST 2007
Daniƫl Mantione wrote:
> The warning is fixable: Remove the superfluous check.
All,
a new contribution to this theme. What about this warning:
{$mode objfpc}
uses sysutils;
function testresult: boolean;
begin
raise exception.create('foo');
end;
begin
testresult;
end.
The compiler warns that the result wasn't assigned, but that function's
result simply cannot be reached.
--
Joao Morais
More information about the fpc-devel
mailing list