Fix -W parameter parsing

This commit is contained in:
Rangi42
2025-07-19 15:43:54 -04:00
parent 14f5e16ae8
commit 250e08043b
5 changed files with 32 additions and 32 deletions

View File

@@ -0,0 +1,4 @@
opt Wtruncation=256
section "test", rom0
db 999
db -254

View File

@@ -0,0 +1,5 @@
warning: Invalid warning flag parameter "truncation=256"; capping at maximum 2
warning: diagnostic-parameter-cap.asm(3): [-Wtruncation]
Expression must be 8-bit; use LOW() to force 8-bit
warning: diagnostic-parameter-cap.asm(4): [-Wtruncation]
Expression must be 8-bit; use LOW() to force 8-bit

View File

@@ -1,4 +1,4 @@
warning: Invalid parameter 99 for warning flag "truncation"; capping at maximum 2
warning: Invalid warning flag parameter "truncation=99"; capping at maximum 2
warning: invalid-param.asm(2): [-Wtruncation]
Expression must be 8-bit; use LOW() to force 8-bit
warning: invalid-param.asm(3): [-Wtruncation]