Fix rgbasm -Werror=... not adding to the final error count

This commit is contained in:
Rangi
2026-07-03 13:05:33 -04:00
parent 9b4df11473
commit 9bbb2247a7
3 changed files with 4 additions and 0 deletions
+2
View File
@@ -171,6 +171,8 @@ void warning(WarningID id, char const *fmt, ...) {
case WarningBehavior::ERROR:
printDiag(fmt, args, "error", STYLE_RED, "[-Werror=%s]", flag);
incrementErrors();
break;
}