mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix -W parameter parsing
This commit is contained in:
4
test/asm/diagnostic-parameter-cap.asm
Normal file
4
test/asm/diagnostic-parameter-cap.asm
Normal file
@@ -0,0 +1,4 @@
|
||||
opt Wtruncation=256
|
||||
section "test", rom0
|
||||
db 999
|
||||
db -254
|
||||
5
test/asm/diagnostic-parameter-cap.err
Normal file
5
test/asm/diagnostic-parameter-cap.err
Normal 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
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user