]> granicus.if.org Git - curl/commitdiff
HP C adjustments:
authorYang Tse <yangsita@gmail.com>
Fri, 10 Oct 2008 02:32:46 +0000 (02:32 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 10 Oct 2008 02:32:46 +0000 (02:32 +0000)
  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.

ares/m4/cares-compilers.m4
m4/curl-compilers.m4

index ac4fc07e9ff958db31b94c70a78e5393918016d3..c1ad12bc4e38f935b6fd97ee4c75bc3ad0e508b4 100644 (file)
@@ -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
         ;;
         #
index 60e0c98f7db3f824c4dc8010d39e3a45a25e9b5b..0be683e048e112380fa3155a473682f9d771c4b4 100644 (file)
@@ -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
         ;;
         #