From: Fred Sundvik Date: Thu, 13 Apr 2017 13:12:55 +0000 (+0300) Subject: Add make option for allowing warnings X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d68294615f9c67764c06a7524fb59c22c024a106;p=qmk_firmware.git Add make option for allowing warnings --- 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