Просмотр исходного кода

* don't use tmessage.setverbosity() to check whether the message is valid as it should only be applied when the switches are flushed, so use the new tmessage.valid() instead

Sven/Sarah Barth 11 месяцев назад
Родитель
Сommit
1388e2af5b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      compiler/verbose.pas

+ 1 - 1
compiler/verbose.pas

@@ -211,7 +211,7 @@ implementation
           val(tok, msgnr, code);
           if (code<>0) then
             exit;
-          if not msg^.setverbosity(msgnr,state) then
+          if not msg^.valid(msgnr) then
             exit
           else
             recordpendingmessagestate(msgnr, state);