mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
51a9ac1795
cflags: add -Wformat=2 -Wformat-overflow -Wformat-truncation
16 lines
427 B
Lua
16 lines
427 B
Lua
SRC := $(filter-out loadlib.c lua.c luac.c,$(wildcard *.c))
|
|
|
|
ifneq (llvm, $(TOOLCHAIN))
|
|
CFLAGS += -fstack-usage -fconserve-stack
|
|
endif
|
|
|
|
CFLAGS += -DLUA_MAXCAPTURES=16 -DL_MAXLENNUM=50
|
|
|
|
# Enable these options to debug stack usage
|
|
# -Wstack-usage=128 -Wno-error=stack-usage=128
|
|
|
|
include $(RIOTBASE)/Makefile.base
|
|
ifneq (,$(filter -Wformat-nonliteral -Wformat=2, $(CFLAGS)))
|
|
CFLAGS += -Wno-format-nonliteral
|
|
endif
|