* fixed warnings about "uninitialized" initialized local variables

based on test for web bug #7285 (which was already fixed)

git-svn-id: trunk@5523 -
This commit is contained in:
Jonas Maebe 2006-12-01 20:47:28 +00:00
parent 9e60d6791d
commit 7588b4378c
3 changed files with 22 additions and 0 deletions

1
.gitattributes vendored
View File

@ -7731,6 +7731,7 @@ tests/webtbs/tw7195.pp svneol=native#text/plain
tests/webtbs/tw7227.pp svneol=native#text/plain
tests/webtbs/tw7276.pp svneol=native#text/plain
tests/webtbs/tw7281.pp svneol=native#text/plain
tests/webtbs/tw7285.pp svneol=native#text/plain
tests/webtbs/tw7329.pp svneol=native#text/plain
tests/webtbs/tw7372.pp svneol=native#text/plain
tests/webtbs/tw7379.pp svneol=native#text/plain

View File

@ -698,6 +698,7 @@ implementation
else
internalerror(200611051);
end;
vs.varstate:=vs_initialised;
end;
procedure read_gpc_name(sc : TFPObjectList);

20
tests/webtbs/tw7285.pp Normal file
View File

@ -0,0 +1,20 @@
{ %opt=-Sehw }
type myclass=class(TObject)
procedure myproc();
end;
procedure myclass.myproc();
var avalue:integer=100;
begin
writeln(avalue);
end;
var
c: myclass;
begin
c := myclass.create;
c.myproc;
c.free;
end.