From: oetiker Date: Tue, 11 Oct 2005 16:32:09 +0000 (+0000) Subject: do not complain about strict aliasing issues -- Alex X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=70f35e3bbca2e4172289295f01aaea6735a42b15;p=rrdtool.git do not complain about strict aliasing issues -- Alex git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@698 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/configure.ac b/configure.ac index cb3caa8..e2d5c6a 100644 --- a/configure.ac +++ b/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 ]) ]