Browse Source

* Hack-fixed a compiler note.

git-svn-id: trunk@31742 -
yury 10 năm trước cách đây
mục cha
commit
aa150093d2
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      compiler/pexpr.pas

+ 4 - 1
compiler/pexpr.pas

@@ -2087,7 +2087,10 @@ implementation
                            expstr:=copy(pattern,2,length(pattern)-1);
                            val(expstr,intval,code);
                            if code<>0 then
-                             haderror:=true;
+                             begin
+                               haderror:=true;
+                               intval:=intval; // Hackfix the "var assigned but never used" note.
+                             end;
                          end
                        else
                          expstr:='';