]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Add make option for allowing warnings
authorFred Sundvik <fsundvik@gmail.com>
Thu, 13 Apr 2017 13:12:55 +0000 (16:12 +0300)
committerFred Sundvik <fsundvik@gmail.com>
Thu, 13 Apr 2017 13:12:55 +0000 (16:12 +0300)
tmk_core/rules.mk

index 25993354f2edcef22a3217be78b3f2cf9f8481f5..b7cb0a559aa0bba40d2750abfcb89801c6d3f99e 100644 (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