1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/lua/Makefile.lua
Martine Lenders 51a9ac1795
Merge pull request #9355 from gebart/pr/Wformat
cflags: add -Wformat=2 -Wformat-overflow -Wformat-truncation
2018-07-19 15:23:10 +02:00

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