Document -Ooxxx options, was 'Variable "..." does not seem to be initialized' warning doesn't always catch obvious cases
Original Reporter info from Mantis: Hixie
-
Reporter name: Ian Hickson
Original Reporter info from Mantis: Hixie
- Reporter name: Ian Hickson
Description:
In the following program, there's no warning on the line marked "HERE". There should be; there's no way for the variable to be initialised at that point.
program Test;
var
UninitializedLocalVariable: Cardinal;
begin
if (False) then // doesn't have to be false
begin
UninitializedLocalVariable := 0;
end
else
begin
Writeln(UninitializedLocalVariable); // HERE
end
end.
Mantis conversion info:
- Mantis ID: 24741
- OS: Linux
- Build: 2.7.1 [2013/06/02] for x86_64
- Platform: x86_64
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 1086 (#4c0a0205)
- Target version: 2.6.4