Compiler does not always issue "function result not set" warning
Original Reporter info from Mantis: ilyalyu
-
Reporter name: Ilya Lyubinskiy
Original Reporter info from Mantis: ilyalyu
- Reporter name: Ilya Lyubinskiy
Description:
Example 1 (generates warning):
function f: Boolean;
begin
end;
Example 2 (DOES NOT generate warning, though function result is not actually set):
function f: Boolean;
begin
Exit;
Result := True
end;
Mantis conversion info:
- Mantis ID: 8717
- Fixed in version: 2.2.2
- Fixed in revision: 8634 (#ba5e2a1e)