]> granicus.if.org Git - ipset/commitdiff
Disable extra warning flags
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 10 Feb 2009 14:33:54 +0000 (15:33 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 10 Feb 2009 14:33:54 +0000 (15:33 +0100)
In order to disable the extra warning flags, NO_EXTRA_WARN_FLAGS
variable added to userspace Makefile.

ChangeLog
Makefile
README

index adb2eb988468a361aa79117266974ba60b97c6fc..c68417ee5201c789bc272c663443bd540cee1b80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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.
index 326aef8397085cb0bc670e6912854b959017361e..35d9604a8dfa8d2707d41aa5aac96c7980cb0bb0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/README b/README
index a48782d9c8a4199371f38ddd6991a4b699ab8987..4833b901b3fea2b0146193fcf4ff326ff3ad9474 100644 (file)
--- a/README
+++ b/README
@@ -14,6 +14,14 @@ This is the ipset source tree. Follow these steps to install ipset:
        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