diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-22 17:58:10 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-22 17:58:10 +0000 |
commit | edbab208cf506c660d37346f43c5a2efa8528066 (patch) | |
tree | d003b4617eeb2ffd00a15cd15a40470fa4dee5a9 /gcc/ada/errutil.adb | |
parent | 581b7a3847963e186af616e9b6a7390d120881d3 (diff) | |
download | gcc-edbab208cf506c660d37346f43c5a2efa8528066.tar.gz |
2009-07-22 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 149945
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@149950 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/errutil.adb')
-rw-r--r-- | gcc/ada/errutil.adb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ada/errutil.adb b/gcc/ada/errutil.adb index 28db086274c..6a5bb692d6d 100644 --- a/gcc/ada/errutil.adb +++ b/gcc/ada/errutil.adb @@ -261,11 +261,11 @@ package body Errutil is -- avoid junk extra messages from cascaded parsing errors if not (Errors.Table (Prev_Msg).Warn - or + or else Errors.Table (Prev_Msg).Style) or else (Errors.Table (Cur_Msg).Warn - or + or else Errors.Table (Cur_Msg).Style) then -- All tests passed, delete the message by simply returning @@ -296,8 +296,12 @@ package body Errutil is -- Bump appropriate statistics count - if Errors.Table (Cur_Msg).Warn or Errors.Table (Cur_Msg).Style then + if Errors.Table (Cur_Msg).Warn + or else + Errors.Table (Cur_Msg).Style + then Warnings_Detected := Warnings_Detected + 1; + else Total_Errors_Detected := Total_Errors_Detected + 1; |