Commit 2099b689 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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.
parent f605172d
...@@ -15,7 +15,8 @@ INC += -I$(PY_SRC) ...@@ -15,7 +15,8 @@ INC += -I$(PY_SRC)
INC += -I$(BUILD) INC += -I$(BUILD)
# compiler settings # 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) UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin) ifeq ($(UNAME_S),Darwin)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment