Browse Source

- cleanup, fixing of uninitialized variables, missing return values and unused variables

git-svn-id: trunk@5502 -
tom_at_work 18 years ago
parent
commit
3b6d5c3676
3 changed files with 2 additions and 1 deletions
  1. 1 0
      compiler/ncal.pas
  2. 1 0
      compiler/ncon.pas
  3. 0 1
      compiler/nflw.pas

+ 1 - 0
compiler/ncal.pas

@@ -333,6 +333,7 @@ implementation
         para:=tcallparanode(p2);
         para:=tcallparanode(p2);
         currargpos:=0;
         currargpos:=0;
         paramssize:=0;
         paramssize:=0;
+        names := '';
         while assigned(para) do
         while assigned(para) do
           begin
           begin
             if assigned(para.parametername) then
             if assigned(para.parametername) then

+ 1 - 0
compiler/ncon.pas

@@ -384,6 +384,7 @@ implementation
                 len:=0;
                 len:=0;
               end;
               end;
           end;
           end;
+          dogetcopy := n;
       end;
       end;
 
 
 
 

+ 0 - 1
compiler/nflw.pas

@@ -1111,7 +1111,6 @@ implementation
    function tgotonode.dogetcopy : tnode;
    function tgotonode.dogetcopy : tnode;
      var
      var
        p : tgotonode;
        p : tgotonode;
-       i : longint;
      begin
      begin
         p:=tgotonode(inherited dogetcopy);
         p:=tgotonode(inherited dogetcopy);
         p.exceptionblock:=exceptionblock;
         p.exceptionblock:=exceptionblock;