Some warning are not issued
Original Reporter info from Mantis: ilyalyu
-
Reporter name: Ilya Lyubinskiy
Original Reporter info from Mantis: ilyalyu
- Reporter name: Ilya Lyubinskiy
Description:
The code bellow should produce a warning like this "the variable i is assigned a value which is never used". However, the compiler does not generate any warnigns. While this is not critical, I would feel much more comfortable if I was sure that the compiler issues a warning if I write a code which potentially has a mistake.
{$hints on}
{$notes on}
{$warnings on}
program test;
function f: Longint;
var i: Longint;
begin
i := 1;
i := 2;
f := i;
end;
begin
f
end.
Mantis conversion info:
- Mantis ID: 11303
- Version: 2.2.0