瀏覽代碼

* fixed warning about unset funcret

peter 22 年之前
父節點
當前提交
60b05c92de
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      compiler/nflw.pas

+ 6 - 5
compiler/nflw.pas

@@ -754,7 +754,6 @@ implementation
     function tfornode.pass_1 : tnode;
     function tfornode.pass_1 : tnode;
       var
       var
          old_t_times : longint;
          old_t_times : longint;
-         hp : Tnode;
      begin
      begin
          result:=nil;
          result:=nil;
          { Calc register weight }
          { Calc register weight }
@@ -872,9 +871,8 @@ implementation
                  pt:=cfuncretnode.create(aktprocdef.funcretsym);
                  pt:=cfuncretnode.create(aktprocdef.funcretsym);
                  left:=cassignmentnode.create(pt,left);
                  left:=cassignmentnode.create(pt,left);
                  onlyassign:=true;
                  onlyassign:=true;
-               end
-              else
-               tfuncretsym(aktprocdef.funcretsym).funcretstate:=vs_assigned;
+               end;
+              tfuncretsym(aktprocdef.funcretsym).funcretstate:=vs_assigned;
             end;
             end;
          end;
          end;
         if assigned(left) then
         if assigned(left) then
@@ -1451,7 +1449,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.61  2003-01-03 12:15:56  daniel
+  Revision 1.62  2003-01-03 17:16:57  peter
+    * fixed warning about unset funcret
+
+  Revision 1.61  2003/01/03 12:15:56  daniel
     * Removed ifdefs around notifications
     * Removed ifdefs around notifications
       ifdefs around for loop optimizations remain
       ifdefs around for loop optimizations remain