]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Disable pointer sign warnings. Use WARN_CFLAGS more.
authorSimon Josefsson <simon@josefsson.org>
Wed, 12 Nov 2008 15:28:16 +0000 (16:28 +0100)
committerSimon Josefsson <simon@josefsson.org>
Wed, 12 Nov 2008 15:28:16 +0000 (16:28 +0100)
configure.ac
lib/Makefile.am

index 13d277a0e34043292779a4e1a5b8fe3fcac992f6..b7a4bece9146868ad1cb1eac943b5316b6b3261d 100644 (file)
@@ -173,7 +173,7 @@ AC_PROG_LIBTOOL
 gl_INIT
 
 # These are warnings we could enable:
-# -W -Wchar-subscripts -Wformat-security -Wnonnull -Winit-self -Wmissing-include-dirs -Wunused -Wno-unused-parameter -Wfloat-equal -Wdeclaration-after-statement -Wshadow -Wunsafe-loop-optimizations -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wnested-externs -Winline -Wvla -Wvolatile-register-var -Wdisabled-optimization -Wstack-protector -Woverlength-strings -Wno-pointer-sign
+# -W -Wchar-subscripts -Wformat-security -Wnonnull -Winit-self -Wmissing-include-dirs -Wunused -Wno-unused-parameter -Wfloat-equal -Wdeclaration-after-statement -Wshadow -Wunsafe-loop-optimizations -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wnested-externs -Winline -Wvla -Wvolatile-register-var -Wdisabled-optimization -Wstack-protector -Woverlength-strings
 #
 # These are warnings we have tried but have turned out not to be useful:
 #
@@ -187,7 +187,7 @@ gl_INIT
 # -Wswitch-default: too many warnings for now
 # -Wswitch-enum: too many warnings for now
 
-for w in -Wall; do
+for w in -Wall -Wno-pointer-sign; do
   gl_WARN_ADD([$w])
 done
 export WARN_CFLAGS
index 007775336320a4ff28b94744a4afb188bc4307e2..721be2fb903b78fc95d538a29ee0bc9024c3d87a 100644 (file)
@@ -29,7 +29,9 @@ endif
 
 localedir = $(datadir)/locale
 
-AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"     \
+AM_CPPFLAGS = \
+       $(WARN_CFLAGS)                          \
+       -DLOCALEDIR=\"$(localedir)\"            \
        -I$(srcdir)/gl                          \
        -I$(builddir)/gl                        \
        -I$(srcdir)/includes                    \