Browse Source

* Fix double WARN infinite loop

git-svn-id: trunk@17864 -
pierre 14 years ago
parent
commit
d707d38ea1
1 changed files with 4 additions and 2 deletions
  1. 4 2
      compiler/switches.pas

+ 4 - 2
compiler/switches.pas

@@ -346,8 +346,10 @@ procedure flushpendingswitchesstate;
           begin
             pstate^.next:=current_settings.pmessage;
             current_settings.pmessage:=fstate;
-          end;
-        pstate:=pstate^.next;
+            pstate:=nil;
+          end
+        else
+          pstate:=pstate^.next;
         pendingstate.nextmessagerecord:=nil;
       end;
     { process pending calling convention changes (calling x) }