Add hint about possibly undefined function result
Original Reporter info from Mantis: Fr0sT
-
Reporter name:
Original Reporter info from Mantis: Fr0sT
- Reporter name:
Description:
The code below produces "[DCC Warning] Project1.dpr(211): W1035 Return value of function 'test' might be undefined" on Delphi but no reaction on FPC. It's very important check though.
Steps to reproduce:
function test: byte;
begin
try
WriteLn('foo');
result := 0;
except
end;
end;
Mantis conversion info:
- Mantis ID: 37899
- OS: Windows
- OS Build: 7
- Build: trunk
- Platform: x64
- Version: 3.3.1
- Monitored by: » Fr0sT (Fr0sT)