浏览代码

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

git-svn-id: trunk@5502 -
tom_at_work 18 年之前
父节点
当前提交
3b6d5c3676
共有 3 个文件被更改,包括 2 次插入1 次删除
  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);
         currargpos:=0;
         paramssize:=0;
+        names := '';
         while assigned(para) do
           begin
             if assigned(para.parametername) then

+ 1 - 0
compiler/ncon.pas

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

+ 0 - 1
compiler/nflw.pas

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