mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Add a -Wunmapped-char warning for characters not in the charmap (#1023)
Fixes #1022
This commit is contained in:
18
test/asm/unmapped-char.asm
Normal file
18
test/asm/unmapped-char.asm
Normal file
@@ -0,0 +1,18 @@
|
||||
SECTION "test", ROM0
|
||||
|
||||
db "A" ; OK, default empty charmap
|
||||
|
||||
pushc
|
||||
newcharmap custom
|
||||
db "A" ; unmapped in non-default charmap
|
||||
popc
|
||||
|
||||
db "A" ; OK, default empty charmap again
|
||||
|
||||
charmap "B", $42
|
||||
db "A" ; unmapped in non-empty charmap
|
||||
|
||||
println "A" ; does not use charmap
|
||||
|
||||
opt Wno-unmapped-char
|
||||
db "A" ; warning silenced
|
||||
Reference in New Issue
Block a user