In order to disable the extra warning flags, NO_EXTRA_WARN_FLAGS
variable added to userspace Makefile.
+2.4.8
+ - In order to disable the extra warning flags, NO_EXTRA_WARN_FLAGS
+ variable added to userspace Makefile
+
2.4.5
- Some compiler warning options are too aggressive and
therefore disabled.
RELEASE_DIR:=/tmp
COPT_FLAGS:=-O2
-WARN_FLAGS:=-Wall \
+WARN_FLAGS:=-Wall
+EXTRA_WARN_FLAGS:=\
-Wextra \
-Waggregate-return \
-Wbad-function-cast \
-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
IP_NF_SET_MAX=<<your setsize number>> \
IP_NF_SET_HASHSIZE=<<your hashsize number>>
+ If your compiler does not support all of the extra warning
+ flags, you can disable those too:
+
+ # make KERNEL_DIR=<<where-you-built-your-kernel>> \
+ IP_NF_SET_MAX=<<your setsize number>> \
+ IP_NF_SET_HASHSIZE=<<your hashsize number>> \
+ NO_EXTRA_WARN_FLAGS=yes
+
2. Install the binary and the modules
# make KERNEL_DIR=<<where-you-built-your-kernel>> install