diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-09 00:50:50 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-09 00:50:50 +0000 |
commit | 4f924ab07eb3e53a0671e0c5ef518e70fb0befa1 (patch) | |
tree | d525cb077916c84a95d3b6e6a373cadb83c09198 | |
parent | ebadeff0caa424013a729d3ad1e7210142bc781f (diff) |
HP C adjustments:
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.
-rw-r--r-- | ares/m4/cares-compilers.m4 | 8 | ||||
-rw-r--r-- | m4/curl-compilers.m4 | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/ares/m4/cares-compilers.m4 b/ares/m4/cares-compilers.m4 index 0dc2b0312..4ffa0d25d 100644 --- a/ares/m4/cares-compilers.m4 +++ b/ares/m4/cares-compilers.m4 @@ -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) diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index 20791da98..729d41364 100644 --- a/m4/curl-compilers.m4 +++ b/m4/curl-compilers.m4 @@ -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) |