mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-20 13:54:33 +00:00
Fix rgbasm -Werror=... not adding to the final error count
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user