mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 01:40:39 +08:00
d: Increment gaggedWarnings if warning or deprecation message was suppressed
gcc/d/ChangeLog: * d-diagnostic.cc (vwarning): Increment gaggedWarnings if warning message was suppressed. (vdeprecation): Likewise for deprecation messages.
This commit is contained in:
parent
dddf3bb0c3
commit
4993d0265e
@ -239,6 +239,8 @@ vwarning (const Loc &loc, const char *format, va_list ap)
|
||||
|
||||
d_diagnostic_report_diagnostic (loc, 0, format, ap, DK_WARNING, false);
|
||||
}
|
||||
else if (global.gag)
|
||||
global.gaggedWarnings++;
|
||||
}
|
||||
|
||||
/* Print supplementary message about the last warning with explicit location
|
||||
@ -297,6 +299,8 @@ vdeprecation (const Loc &loc, const char *format, va_list ap,
|
||||
DK_WARNING, false);
|
||||
free (xformat);
|
||||
}
|
||||
else if (global.gag)
|
||||
global.gaggedWarnings++;
|
||||
}
|
||||
|
||||
/* Print supplementary message about the last deprecation with explicit
|
||||
|
Loading…
x
Reference in New Issue
Block a user