diff options
| author | Fred Sundvik <fsundvik@gmail.com> | 2017-04-13 16:12:55 +0300 |
|---|---|---|
| committer | Fred Sundvik <fsundvik@gmail.com> | 2017-04-13 16:12:55 +0300 |
| commit | d68294615f9c67764c06a7524fb59c22c024a106 (patch) | |
| tree | 8b07323439fc477f47833d7ee7564e26b323a3eb /tmk_core | |
| parent | d8e2ff2964480182f0e3513785e310b4ee96c4ee (diff) | |
| download | qmk_firmware-d68294615f9c67764c06a7524fb59c22c024a106.tar.gz qmk_firmware-d68294615f9c67764c06a7524fb59c22c024a106.zip | |
Add make option for allowing warnings
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/rules.mk | 8 |
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 | |||
| 92 | endif | 92 | endif |
| 93 | CFLAGS += -Wall | 93 | CFLAGS += -Wall |
| 94 | CFLAGS += -Wstrict-prototypes | 94 | CFLAGS += -Wstrict-prototypes |
| 95 | CFLAGS += -Werror | 95 | ifneq ($(strip $(ALLOW_WARNINGS)), yes) |
| 96 | CFLAGS += -Werror | ||
| 97 | endif | ||
| 96 | #CFLAGS += -mshort-calls | 98 | #CFLAGS += -mshort-calls |
| 97 | #CFLAGS += -fno-unit-at-a-time | 99 | #CFLAGS += -fno-unit-at-a-time |
| 98 | #CFLAGS += -Wundef | 100 | #CFLAGS += -Wundef |
| @@ -116,7 +118,9 @@ CPPFLAGS += -O$(OPT) | |||
| 116 | CPPFLAGS += -w | 118 | CPPFLAGS += -w |
| 117 | CPPFLAGS += -Wall | 119 | CPPFLAGS += -Wall |
| 118 | CPPFLAGS += -Wundef | 120 | CPPFLAGS += -Wundef |
| 119 | CPPFLAGS += -Werror | 121 | ifneq ($(strip $(ALLOW_WARNINGS)), yes) |
| 122 | CPPFLAGS += -Werror | ||
| 123 | endif | ||
| 120 | #CPPFLAGS += -mshort-calls | 124 | #CPPFLAGS += -mshort-calls |
| 121 | #CPPFLAGS += -fno-unit-at-a-time | 125 | #CPPFLAGS += -fno-unit-at-a-time |
| 122 | #CPPFLAGS += -Wstrict-prototypes | 126 | #CPPFLAGS += -Wstrict-prototypes |
