aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-10 02:32:46 +0000
committerYang Tse <yangsita@gmail.com>2008-10-10 02:32:46 +0000
commitd61f2603722e8f83d8cb63fbef90fe0914e2338c (patch)
tree66fe3c443f842de059b666ebc2175804c41268bd
parentd0a48627b2976db73ec02003b1f2772018438e90 (diff)
HP C adjustments:
Due to the HP-UX socklen_t issue it is insane to use the +w1 warning level. It generates more than 1100 warnings on socklen_t related statements. Until the issue is somehow fixed we will just use the +w2 warning level.
-rw-r--r--ares/m4/cares-compilers.m46
-rw-r--r--m4/curl-compilers.m46
2 files changed, 10 insertions, 2 deletions
diff --git a/ares/m4/cares-compilers.m4 b/ares/m4/cares-compilers.m4
index ac4fc07e9..c1ad12bc4 100644
--- a/ares/m4/cares-compilers.m4
+++ b/ares/m4/cares-compilers.m4
@@ -700,7 +700,11 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
#
if test "$want_warnings" = "yes"; then
dnl Issue all warnings
- tmp_CFLAGS="$tmp_CFLAGS +w1"
+ dnl tmp_CFLAGS="$tmp_CFLAGS +w1"
+ dnl Due to the HP-UX socklen_t issue it is insane to use the +w1
+ dnl warning level. Until the issue is somehow fixed we will just
+ dnl use the +w2 warning level.
+ tmp_CFLAGS="$tmp_CFLAGS +w2"
fi
;;
#
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index 60e0c98f7..0be683e04 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -706,7 +706,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
#
if test "$want_warnings" = "yes"; then
dnl Issue all warnings
- tmp_CFLAGS="$tmp_CFLAGS +w1"
+ dnl tmp_CFLAGS="$tmp_CFLAGS +w1"
+ dnl Due to the HP-UX socklen_t issue it is insane to use the +w1
+ dnl warning level. Until the issue is somehow fixed we will just
+ dnl use the +w2 warning level.
+ tmp_CFLAGS="$tmp_CFLAGS +w2"
fi
;;
#