Bladeren bron

compiler: set result value to dummy function to prevent compiler to generate a hint

git-svn-id: trunk@16649 -
paul 14 jaren geleden
bovenliggende
commit
a8da9e4bd1
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      compiler/nmat.pas

+ 2 - 1
compiler/nmat.pas

@@ -749,7 +749,8 @@ implementation
 
 
     function tunaryplusnode.pass_1: tnode;
     function tunaryplusnode.pass_1: tnode;
       begin
       begin
-        { can never happen because all the conversions happen 
+        result:=nil;
+        { can never happen because all the conversions happen
           in pass_typecheck }
           in pass_typecheck }
         internalerror(201012250);
         internalerror(201012250);
       end;
       end;