diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2009-02-10 15:33:54 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2009-02-10 15:33:54 +0100 |
commit | 580d2970f4c1429a71a2ea4f8fda419b897f092d (patch) | |
tree | 006f5228bac422ae9bfde86b9bf43e9af20aaa01 /Makefile | |
parent | 3e5d3deae47677521c51486638288e3d05bda645 (diff) |
Disable extra warning flags
In order to disable the extra warning flags, NO_EXTRA_WARN_FLAGS
variable added to userspace Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -33,7 +33,8 @@ IPSET_LIB_DIR:=$(LIBDIR)/ipset RELEASE_DIR:=/tmp COPT_FLAGS:=-O2 -WARN_FLAGS:=-Wall \ +WARN_FLAGS:=-Wall +EXTRA_WARN_FLAGS:=\ -Wextra \ -Waggregate-return \ -Wbad-function-cast \ @@ -58,6 +59,10 @@ WARN_FLAGS:=-Wall \ -Wno-missing-field-initializers \ -Werror +ifndef NO_EXTRA_WARN_FLAGS +WARN_FLAGS+=$(EXTRA_WARN_FLAGS) +endif + CFLAGS:=$(COPT_FLAGS) $(WARN_FLAGS) -Ikernel/include -I. # -g -DIPSET_DEBUG #-pg SH_CFLAGS:=$(CFLAGS) -fPIC SETTYPES:=ipmap portmap macipmap |