diff options
author | Adam YH Lee <adam.yh.lee@gmail.com> | 2017-04-16 15:19:20 -0700 |
---|---|---|
committer | Adam YH Lee <adam.yh.lee@gmail.com> | 2017-04-16 15:19:20 -0700 |
commit | 857600aa4b3a6e46afe17b689ab7cedf7dd4688e (patch) | |
tree | 079ebd7369a2034c16178deadeda26ffa04e717b /tmk_core/rules.mk | |
parent | 22afddb8e8b92873b0adcb0feb09061077e7b709 (diff) | |
parent | b5e8327755100252060afbd54e16322522b4f1e9 (diff) |
Merge branch 'master' into dev
Diffstat (limited to 'tmk_core/rules.mk')
-rw-r--r-- | tmk_core/rules.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk index e4c8aecb2c..b7cb0a559a 100644 --- a/tmk_core/rules.mk +++ b/tmk_core/rules.mk @@ -92,6 +92,9 @@ endif endif CFLAGS += -Wall CFLAGS += -Wstrict-prototypes +ifneq ($(strip $(ALLOW_WARNINGS)), yes) + CFLAGS += -Werror +endif #CFLAGS += -mshort-calls #CFLAGS += -fno-unit-at-a-time #CFLAGS += -Wundef @@ -115,6 +118,9 @@ CPPFLAGS += -O$(OPT) CPPFLAGS += -w CPPFLAGS += -Wall CPPFLAGS += -Wundef +ifneq ($(strip $(ALLOW_WARNINGS)), yes) + CPPFLAGS += -Werror +endif #CPPFLAGS += -mshort-calls #CPPFLAGS += -fno-unit-at-a-time #CPPFLAGS += -Wstrict-prototypes |