Solaris-specific patch, not suitable for upstream.
Prevents gcc from throwing an error on warnings for "deprecated conversion
from string constant to 'char*'" that arises during building Squid.
diff -rupN squid-3.5.5-orig/configure squid-3.5.5/configure
--- squid-3.5.5-orig/configure 2015-06-18 10:43:50.253744903 -0700
+++ squid-3.5.5/configure 2015-06-18 10:44:36.173461352 -0700
@@ -19975,13 +19975,13 @@ fi
if test "$squid_cv_compiler" = "gcc"; then
case "$squid_host_os" in
mingw)
- SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow"
+ SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wno-write-strings -Wcomments -Wshadow"
;;
*)
- SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Wshadow"
+ SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wno-write-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Wshadow"
;;
esac
- SQUID_CXXFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow"
+ SQUID_CXXFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wno-write-strings -Wcomments -Wshadow"
else
SQUID_CFLAGS=
SQUID_CXXFLAGS=
diff -rupN squid-3.5.5-orig/configure.ac squid-3.5.5/configure.ac
--- squid-3.5.5-orig/configure.ac 2015-06-18 10:44:01.422693185 -0700
+++ squid-3.5.5/configure.ac 2015-06-18 10:44:50.759898824 -0700
@@ -361,13 +361,13 @@ dnl Guido Serassio (serassio@squid-cache
dnl Using the latest MinGW (gcc 3.4.5 + mingw-runtime 3.13) cannot build with
dnl -Werror -Wmissing-prototypes -Wmissing-declarations
dnl TODO: check if the problem will be present in any other newer MinGW release.
- SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow"
+ SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wno-write-strings -Wcomments -Wshadow"
;;
*)
- SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Wshadow"
+ SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wno-write-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Wshadow"
;;
esac
- SQUID_CXXFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow"
+ SQUID_CXXFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wno-write-strings -Wcomments -Wshadow"
else
SQUID_CFLAGS=
SQUID_CXXFLAGS=