mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Deprecate __DATE__ and __TIME__ (#1786)
This commit is contained in:
3
test/asm/date-time.asm
Normal file
3
test/asm/date-time.asm
Normal file
@@ -0,0 +1,3 @@
|
||||
; these have unpredictable values depending on the locale
|
||||
assert STRLEN(__DATE__)
|
||||
assert STRLEN(__TIME__)
|
||||
4
test/asm/date-time.err
Normal file
4
test/asm/date-time.err
Normal file
@@ -0,0 +1,4 @@
|
||||
warning: date-time.asm(2): [-Wobsolete]
|
||||
`__DATE__` is deprecated; use `__ISO_8601_LOCAL__`
|
||||
warning: date-time.asm(3): [-Wobsolete]
|
||||
`__TIME__` is deprecated; use `__ISO_8601_LOCAL__`
|
||||
Reference in New Issue
Block a user