summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-20 19:17:35 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-20 20:18:08 +0300
commit2099b6897fb6f2a375f0fb176883c7099b6e0af9 (patch)
treed5ac5269c2b0a129bcadb68adc583b95dbbf4b34 /unix
parentf605172d2b595fc42cf55a5f7d4819abb0396fd2 (diff)
downloadmicropython-2099b6897fb6f2a375f0fb176883c7099b6e0af9.tar.gz
micropython-2099b6897fb6f2a375f0fb176883c7099b6e0af9.zip
unix: Allow to override compiler warning options without touching the rest.
Some people want to enable even more warnings. Let them do it without putting burden on everyone. Some people vice versa think that current settings should be relaxed. In this regard, -Werror is the most problematic, it disallows to use #warning directive, and disallows to pass configuration settings on make command lines. Again, until decided how to deal with these globally, allow to work around these problems locally.
Diffstat (limited to 'unix')
-rw-r--r--unix/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/Makefile b/unix/Makefile
index 485009135f..2f30f92c0b 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -15,7 +15,8 @@ INC += -I$(PY_SRC)
INC += -I$(BUILD)
# compiler settings
-CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT)
+CWARN = -Wall -Werror
+CFLAGS = $(INC) $(CWARN) -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT)
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)