Browse Source

* align Comment behaviour with Msg2Comment

git-svn-id: trunk@6991 -
Tomas Hajny 18 years ago
parent
commit
c2cec3a8c0
1 changed files with 11 additions and 1 deletions
  1. 11 1
      compiler/verbose.pas

+ 11 - 1
compiler/verbose.pas

@@ -482,10 +482,20 @@ var
       begin
       begin
         dostop:=((l and V_Fatal)<>0);
         dostop:=((l and V_Fatal)<>0);
         if ((l and V_Error)<>0) or
         if ((l and V_Error)<>0) or
+           ((l and V_Fatal)<>0) or
            (status.errorwarning and ((l and V_Warning)<>0)) or
            (status.errorwarning and ((l and V_Warning)<>0)) or
            (status.errornote and ((l and V_Note)<>0)) or
            (status.errornote and ((l and V_Note)<>0)) or
            (status.errorhint and ((l and V_Hint)<>0)) then
            (status.errorhint and ((l and V_Hint)<>0)) then
-         inc(status.errorcount);
+         inc(status.errorcount)
+        else
+         if l and V_Warning <> 0 then
+          inc(status.countWarnings)
+         else
+          if l and V_Note <> 0 then
+           inc(status.countNotes)
+          else
+           if l and V_Hint <> 0 then
+            inc(status.countHints);
       { check verbosity level }
       { check verbosity level }
         if not CheckVerbosity(l) then
         if not CheckVerbosity(l) then
           exit;
           exit;