diff --git a/src/asm/warning.cpp b/src/asm/warning.cpp index 41cde1c0..9640d756 100644 --- a/src/asm/warning.cpp +++ b/src/asm/warning.cpp @@ -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; } diff --git a/test/asm/warn-truncation.err b/test/asm/warn-truncation.err index faf30a1d..f5742e21 100644 --- a/test/asm/warn-truncation.err +++ b/test/asm/warn-truncation.err @@ -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 diff --git a/test/asm/warning-as-error.err b/test/asm/warning-as-error.err index 2c0f5433..d06b190a 100644 --- a/test/asm/warning-as-error.err +++ b/test/asm/warning-as-error.err @@ -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