From bf7123d5d2858662b85ddaa24ac43031309a57a2 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 11 Oct 2005 16:32:09 +0000 Subject: [PATCH] do not complain about strict aliasing issues -- Alex git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@698 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/configure.ac b/program/configure.ac index cb3caa8d..e2d5c6af 100644 --- a/program/configure.ac +++ b/program/configure.ac @@ -470,7 +470,7 @@ if test -z "$RRDDOCDIR"; then dnl Does the compiler like -Wall and -pedantic? if test "$GCC" = "yes"; then oCFLAGS=$CFLAGS - CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W" + CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W" AC_CACHE_CHECK(if we can use GCC-specific compiler options, rd_cv_gcc_opt, [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[return 0 ]])],[rd_cv_gcc_opt=yes],[rd_cv_gcc_opt=no ]) ] -- 2.30.2