From dd34bb19bd0fef65e5265e0e5eeab7a46b291e9c Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 26 Jun 2009 20:43:53 +0000 Subject: [PATCH] [package] do not use -Wno-pointer-sign in mtr, break compilation with gcc-3.4.6 (#5427) git-svn-id: svn://svn.openwrt.org/openwrt/packages@16574 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/mtr/patches/100-no_wo_pointer_sign.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 net/mtr/patches/100-no_wo_pointer_sign.patch diff --git a/net/mtr/patches/100-no_wo_pointer_sign.patch b/net/mtr/patches/100-no_wo_pointer_sign.patch new file mode 100644 index 000000000..470c5e87d --- /dev/null +++ b/net/mtr/patches/100-no_wo_pointer_sign.patch @@ -0,0 +1,24 @@ +diff -urN mtr-0.75/configure mtr-0.75.new/configure +--- mtr-0.75/configure 2008-09-19 11:38:58.000000000 +0200 ++++ mtr-0.75.new/configure 2009-06-26 22:41:26.000000000 +0200 +@@ -7956,7 +7956,7 @@ + echo $ECHO_N "checking for C flags to get more warnings... $ECHO_C" >&6; } + ac_save_CFLAGS="$CFLAGS" + if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then +- warning_CFLAGS="-Wall -Wno-pointer-sign" ++ warning_CFLAGS="-Wall" + else + case "$host_os" in + irix*) +diff -urN mtr-0.75/configure.in mtr-0.75.new/configure.in +--- mtr-0.75/configure.in 2008-09-08 09:40:54.000000000 +0200 ++++ mtr-0.75.new/configure.in 2009-06-26 22:41:21.000000000 +0200 +@@ -108,7 +108,7 @@ + ac_save_CFLAGS="$CFLAGS" + if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then + dnl gcc is the easiest C compiler +- warning_CFLAGS="-Wall -Wno-pointer-sign" ++ warning_CFLAGS="-Wall" + else + dnl Vendor supplied C compilers are a bit tricky + case "$host_os" in -- 2.11.0