aboutsummaryrefslogtreecommitdiff
path: root/m4/disable-compiler-warnings.m4
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-07-16 11:34:07 -0500
committerBrent Cook <bcook@openbsd.org>2015-07-16 11:34:07 -0500
commitb9291face3ec7c804b6171857f95594d12384706 (patch)
tree8f7e21142622805ef06aa9fa1000d6cd6965b637 /m4/disable-compiler-warnings.m4
parentddeb740426716de91135def46d8408da9d730586 (diff)
downloadportable-b9291face3ec7c804b6171857f95594d12384706.tar.gz
portable-b9291face3ec7c804b6171857f95594d12384706.tar.bz2
portable-b9291face3ec7c804b6171857f95594d12384706.zip
disable strict aliasing on AIX xlc and HP-UX aC++ compilers
Diffstat (limited to 'm4/disable-compiler-warnings.m4')
-rw-r--r--m4/disable-compiler-warnings.m410
1 files changed, 0 insertions, 10 deletions
diff --git a/m4/disable-compiler-warnings.m4 b/m4/disable-compiler-warnings.m4
index 9dae100..2792722 100644
--- a/m4/disable-compiler-warnings.m4
+++ b/m4/disable-compiler-warnings.m4
@@ -26,14 +26,4 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
26 [AC_MSG_RESULT([no])] 26 [AC_MSG_RESULT([no])]
27) 27)
28CFLAGS="$save_cflags $AM_CFLAGS" 28CFLAGS="$save_cflags $AM_CFLAGS"
29
30save_cflags="$CFLAGS"
31CFLAGS=-fno-strict-aliasing
32AC_MSG_CHECKING([whether CC supports -fno-strict-aliasing])
33AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
34 [AC_MSG_RESULT([yes])]
35 [AM_CFLAGS=-fno-strict-aliasing],
36 [AC_MSG_RESULT([no])]
37)
38CFLAGS="$save_cflags $AM_CFLAGS"
39]) 29])