mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
makefiles/cflags.inc.mk: don't include absolute path in __FILE__ macro
This commit is contained in:
parent
35149bd1c2
commit
71b1689407
@ -38,6 +38,7 @@ endif
|
||||
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow
|
||||
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation
|
||||
OPTIONAL_CFLAGS_BLACKLIST += -gz
|
||||
OPTIONAL_CFLAGS_BLACKLIST += -fmacro-prefix-map=$(RIOTBASE)/=
|
||||
|
||||
ifeq ($(TOOLCHAIN),gnu)
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
|
||||
|
@ -95,6 +95,9 @@ OPTIONAL_CFLAGS += -Wformat=2
|
||||
OPTIONAL_CFLAGS += -Wformat-overflow
|
||||
OPTIONAL_CFLAGS += -Wformat-truncation
|
||||
|
||||
# Don't include absolute path in __FILE__ macro
|
||||
OPTIONAL_CFLAGS += -fmacro-prefix-map=$(RIOTBASE)/=
|
||||
|
||||
# Warn about casts that increase alignment requirements
|
||||
OPTIONAL_CFLAGS += -Wcast-align
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user