Browse Source

Add make option for allowing warnings

pull/1224/head
Fred Sundvik 7 years ago
parent
commit
d68294615f
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      tmk_core/rules.mk

+ 6
- 2
tmk_core/rules.mk View File

@ -92,7 +92,9 @@ endif
endif
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Werror
ifneq ($(strip $(ALLOW_WARNINGS)), yes)
CFLAGS += -Werror
endif
#CFLAGS += -mshort-calls
#CFLAGS += -fno-unit-at-a-time
#CFLAGS += -Wundef
@ -116,7 +118,9 @@ CPPFLAGS += -O$(OPT)
CPPFLAGS += -w
CPPFLAGS += -Wall
CPPFLAGS += -Wundef
CPPFLAGS += -Werror
ifneq ($(strip $(ALLOW_WARNINGS)), yes)
CPPFLAGS += -Werror
endif
#CPPFLAGS += -mshort-calls
#CPPFLAGS += -fno-unit-at-a-time
#CPPFLAGS += -Wstrict-prototypes


Loading…
Cancel
Save