Browse Source

+ try to fix the warnings introduced in r27947, so the compiler builds with -Sew

git-svn-id: trunk@28014 -
Károly Balogh 11 years ago
parent
commit
00b55e100c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/pexpr.pas

+ 4 - 1
compiler/pexpr.pas

@@ -2440,6 +2440,9 @@ implementation
            { allow post fix operators }
            { allow post fix operators }
            again:=true;
            again:=true;
 
 
+           { preinitalize tokenpos }
+           tokenpos:=current_filepos;
+
            { first check for identifier }
            { first check for identifier }
            if token<>_ID then
            if token<>_ID then
              begin
              begin
@@ -2774,7 +2777,7 @@ implementation
                   end;
                   end;
               end; { end case }
               end; { end case }
 
 
-              if p1.nodetype<>errorn then
+              if assigned(p1) and (p1.nodetype<>errorn) then
                 p1.fileinfo:=tokenpos;
                 p1.fileinfo:=tokenpos;
             end;
             end;
          end;
          end;