From 49e14536c683f838f6c3635259620db81edd29f8 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 9 Oct 2008 00:50:50 +0000 Subject: [PATCH] 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. --- m4/cares-compilers.m4 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/m4/cares-compilers.m4 b/m4/cares-compilers.m4 index 0dc2b03..4ffa0d2 100644 --- a/m4/cares-compilers.m4 +++ b/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) -- 2.7.4