[fpc-pascal] Over-zealous Warning about dynamic string initialization

Howard Page-Clark hdpc at talktalk.net
Fri Nov 1 17:57:58 CET 2013


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?

Howard



More information about the fpc-pascal mailing list