Skip to content
Snippets Groups Projects
Commit 4f924ab0 authored by Yang Tse's avatar Yang Tse
Browse files

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.
parent ebadeff0
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment