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;
}
+1
View File
@@ -54,3 +54,4 @@ error: Expression must be 8-bit; use `LOW()` to force 8-bit [-Werror=truncation]
at warn-truncation.asm::try(30) <- warn-truncation.asm(40)
error: Expression must be 16-bit [-Werror=truncation]
at warn-truncation.asm::try(31) <- warn-truncation.asm(40)
Assembly aborted with 12 errors
+1
View File
@@ -8,3 +8,4 @@ error: warning or error? [-Werror=user]
at warning-as-error.asm::test(5) <- warning-as-error.asm(11)
warning: warning or error? [-Wuser]
at warning-as-error.asm::test(5) <- warning-as-error.asm(14)
Assembly aborted with 2 errors