aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-04-13 16:12:55 +0300
committerFred Sundvik <fsundvik@gmail.com>2017-04-13 16:12:55 +0300
commitd68294615f9c67764c06a7524fb59c22c024a106 (patch)
tree8b07323439fc477f47833d7ee7564e26b323a3eb /tmk_core
parentd8e2ff2964480182f0e3513785e310b4ee96c4ee (diff)
downloadfirmware-d68294615f9c67764c06a7524fb59c22c024a106.tar.gz
firmware-d68294615f9c67764c06a7524fb59c22c024a106.tar.bz2
firmware-d68294615f9c67764c06a7524fb59c22c024a106.zip
Add make option for allowing warnings
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/rules.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index 25993354f..b7cb0a559 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -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