mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
-Wexport-undefined warning for exporting undefined symbols
This commit is contained in:
@@ -16,3 +16,6 @@ EXPORT REDEF variable = 1234
|
||||
DEF equs_sym EQUS "hello"
|
||||
EXPORT equs_sym ; exports undefined symbol `hello` due to EQUS expansion
|
||||
EXPORT DEF string EQUS "goodbye" ; invalid syntax
|
||||
|
||||
PURGE equ_sym
|
||||
EXPORT equ_sym
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
warning: Exporting an undefined symbol `undefined` [-Wexport-undefined]
|
||||
at export.asm(1)
|
||||
warning: Exporting an undefined symbol `hello` [-Wexport-undefined]
|
||||
at export.asm(17)
|
||||
while expanding symbol `equs_sym`
|
||||
error: syntax error, unexpected EQUS
|
||||
at export.asm(18)
|
||||
warning: Purging an exported symbol `equ_sym` [-Wpurge]
|
||||
at export.asm(20)
|
||||
warning: Exporting an undefined symbol `equ_sym` [-Wexport-undefined]
|
||||
at export.asm(21)
|
||||
Assembly aborted with 1 error!
|
||||
|
||||
Reference in New Issue
Block a user