Fix lint_off on Errors (#5351) (#5363)

This commit is contained in:
Ethan Sifferman
2024-08-11 21:04:46 +02:00
committed by GitHub
parent eb3f10399a
commit 1b15509a9c
12 changed files with 128 additions and 21 deletions
+1 -1
View File
@@ -371,7 +371,7 @@ bool FileLine::warnOff(const string& msg, bool flag) {
return true;
}
const V3ErrorCode code{cmsg};
if (code < V3ErrorCode::EC_FIRST_WARN) {
if (code.hardError()) {
return false;
} else {
warnOff(code, flag);