mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Also make deprecationSupplemental adhere to error limit (#16779)
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
This commit is contained in:
parent
29a34181da
commit
e643a07ebc
2 changed files with 6 additions and 3 deletions
|
@ -567,8 +567,11 @@ extern (C++) void verrorReportSupplemental(const ref Loc loc, const(char)* forma
|
|||
goto case ErrorKind.error;
|
||||
else if (global.params.useDeprecated == DiagnosticReporting.inform && !global.gag)
|
||||
{
|
||||
info.headerColor = Classification.deprecation;
|
||||
verrorPrint(format, ap, info);
|
||||
if (global.params.v.errorLimit == 0 || global.deprecations <= global.params.v.errorLimit)
|
||||
{
|
||||
info.headerColor = Classification.deprecation;
|
||||
verrorPrint(format, ap, info);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -18,5 +18,5 @@ void main()
|
|||
f();
|
||||
f();
|
||||
f();
|
||||
f();
|
||||
static assert("1"); // also surpress deprecationSupplemental
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue