mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-29 10:05:15 +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:
|
case WarningBehavior::ERROR:
|
||||||
printDiag(fmt, args, "error", STYLE_RED, "[-Werror=%s]", flag);
|
printDiag(fmt, args, "error", STYLE_RED, "[-Werror=%s]", flag);
|
||||||
|
|
||||||
|
incrementErrors();
|
||||||
break;
|
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)
|
at warn-truncation.asm::try(30) <- warn-truncation.asm(40)
|
||||||
error: Expression must be 16-bit [-Werror=truncation]
|
error: Expression must be 16-bit [-Werror=truncation]
|
||||||
at warn-truncation.asm::try(31) <- warn-truncation.asm(40)
|
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)
|
at warning-as-error.asm::test(5) <- warning-as-error.asm(11)
|
||||||
warning: warning or error? [-Wuser]
|
warning: warning or error? [-Wuser]
|
||||||
at warning-as-error.asm::test(5) <- warning-as-error.asm(14)
|
at warning-as-error.asm::test(5) <- warning-as-error.asm(14)
|
||||||
|
Assembly aborted with 2 errors
|
||||||
|
|||||||
Reference in New Issue
Block a user