On Fri, 1 Nov 2013, Howard Page-Clark wrote:
The following program:
program Project1;
{$mode objfpc}{$H+}
var
s:ansistring;
begin
WriteLn('s <',s,'> always seems to be initialized to ''''');
end.
produces a Warning
Warning: Variable "s" does not seem to be initialized
Can this Warning be disabled for compiler-managed variables?
I recommend against it.
It can bite you in the leg, it has bitten me in the leg several times.
For instance the result identifier for functions returning ansistring
is particularly tricky.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal