]> granicus.if.org Git - curl/commitdiff
HP C adjustments:
authorYang Tse <yangsita@gmail.com>
Thu, 9 Oct 2008 00:50:50 +0000 (00:50 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 9 Oct 2008 00:50:50 +0000 (00:50 +0000)
  Disallow run-time dereferencing of null pointers.

  Disable some remarks:

    #4227: padding struct with n bytes to align member.

    #4255: padding size of struct with n bytes to alignment boundary.

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

index 0dc2b0312d4414937d2dc9de9a458db86c73bf86..4ffa0d25d75923a036cbaf1d1b13361739fdd99f 100644 (file)
@@ -331,8 +331,12 @@ AC_DEFUN([CARES_SET_COMPILER_BASIC_OPTS], [
         #
       HPUXC)
         #
-        dnl Placeholder
-        tmp_CFLAGS="$tmp_CFLAGS"
+        dnl Disallow run-time dereferencing of null pointers
+        tmp_CFLAGS="$tmp_CFLAGS -z"
+        dnl Disable some remarks
+        dnl #4227: padding struct with n bytes to align member
+        dnl #4255: padding size of struct with n bytes to alignment boundary
+        tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
         ;;
         #
       IBMC)
index 20791da984b30bd13c633b81f3066f45439460f2..729d413646a4b1abb7d1f7793c8dafb709252c64 100644 (file)
@@ -337,8 +337,12 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
         #
       HPUXC)
         #
-        dnl Placeholder
-        tmp_CFLAGS="$tmp_CFLAGS"
+        dnl Disallow run-time dereferencing of null pointers
+        tmp_CFLAGS="$tmp_CFLAGS -z"
+        dnl Disable some remarks
+        dnl #4227: padding struct with n bytes to align member
+        dnl #4255: padding size of struct with n bytes to alignment boundary
+        tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
         ;;
         #
       IBMC)