diff options
author | Adam Lee <adam@bigtuna.io> | 2017-05-07 14:36:10 -0700 |
---|---|---|
committer | Adam Lee <adam@bigtuna.io> | 2017-05-07 14:36:10 -0700 |
commit | f2fcab96a8dd8cc70d6785da76621c48df1af94c (patch) | |
tree | 9be0967ab0d3795e6d20299988c84280f3ad98f6 /tmk_core/rules.mk | |
parent | f90321bdcbcbd196ee642cdd8cc31aa0f6ac121e (diff) | |
parent | 2704c163da590d3020f6d87717c400611de81110 (diff) |
Merge remote-tracking branch 'upstream/master'
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 |