components/squid/patches/wno-write-strings.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 05 Aug 2015 10:48:38 -0700
changeset 4742 8f6fdd91de07
parent 4539 f2b9eb7f8e76
permissions -rw-r--r--
15802265 SUNBT7182198 include r programming language in solaris (disable parfait)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4539
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     1
Solaris-specific patch, not suitable for upstream. 
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     2
Prevents gcc from throwing an error on warnings for "deprecated conversion 
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     3
from string constant to 'char*'" that arises during building Squid. 
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     4
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     5
diff -rupN squid-3.5.5-orig/configure squid-3.5.5/configure
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     6
--- squid-3.5.5-orig/configure	2015-06-18 10:43:50.253744903 -0700
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     7
+++ squid-3.5.5/configure	2015-06-18 10:44:36.173461352 -0700
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     8
@@ -19975,13 +19975,13 @@ fi
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
     9
 if test "$squid_cv_compiler" = "gcc"; then
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    10
   case "$squid_host_os" in
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    11
   mingw)
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    12
-    SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow"
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    13
+    SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wno-write-strings -Wcomments -Wshadow"
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    14
     ;;
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    15
   *)
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    16
-    SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Wshadow"
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    17
+    SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wno-write-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Wshadow"
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    18
     ;;
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    19
   esac
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    20
-  SQUID_CXXFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow"
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    21
+  SQUID_CXXFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wno-write-strings -Wcomments -Wshadow"
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    22
 else
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    23
   SQUID_CFLAGS=
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    24
   SQUID_CXXFLAGS=
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    25
diff -rupN squid-3.5.5-orig/configure.ac squid-3.5.5/configure.ac
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    26
--- squid-3.5.5-orig/configure.ac	2015-06-18 10:44:01.422693185 -0700
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    27
+++ squid-3.5.5/configure.ac	2015-06-18 10:44:50.759898824 -0700
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    28
@@ -361,13 +361,13 @@ dnl Guido Serassio (serassio@squid-cache
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    29
 dnl Using the latest MinGW (gcc 3.4.5 + mingw-runtime 3.13) cannot build with
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    30
 dnl -Werror -Wmissing-prototypes -Wmissing-declarations
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    31
 dnl TODO: check if the problem will be present in any other newer MinGW release.
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    32
-    SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow"
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    33
+    SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wno-write-strings -Wcomments -Wshadow"
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    34
     ;;
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    35
   *)
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    36
-    SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Wshadow"
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    37
+    SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wno-write-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Wshadow"
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    38
     ;;
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    39
   esac
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    40
-  SQUID_CXXFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow"
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    41
+  SQUID_CXXFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wno-write-strings -Wcomments -Wshadow"
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    42
 else
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    43
   SQUID_CFLAGS=
f2b9eb7f8e76 21305852 update to squid 3.5.5
Stacy Yeh <stacy.yeh@oracle.com>
parents:
diff changeset
    44
   SQUID_CXXFLAGS=