Add a -Wunmapped-char warning for characters not in the charmap (#1023)

Fixes #1022
This commit is contained in:
Rangi
2022-08-28 15:12:43 -04:00
committed by GitHub
parent d29057e747
commit 8207dc57b7
14 changed files with 58 additions and 11 deletions

View 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