Browse Source

* Hack-fixed a compiler note.

git-svn-id: trunk@31742 -
yury 10 years ago
parent
commit
aa150093d2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/pexpr.pas

+ 4 - 1
compiler/pexpr.pas

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