diff --git a/ares/configure.ac b/ares/configure.ac index 448faecb8aeddd42a510651f6900f86ac386ae27..362370d67a260f978b355a9ea378fab4a3816bf3 100644 --- a/ares/configure.ac +++ b/ares/configure.ac @@ -31,7 +31,9 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]), CPPFLAGS="$CPPFLAGS -DCURLDEBUG" CFLAGS="$CFLAGS -g" if test "$GCC" = "yes"; then - CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wundef -Wpointer-arith -Wnested-externs -Wcast-align -Winline -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wshadow -Wfloat-equal -Wsign-compare -Wunreachable-code" + dnl these work for gcc 2.95 + CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wundef -Wpointer-arith -Wnested-externs -Wcast-align -Winline -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wshadow -Wsign-compare" + dnl 2.96 or higher: -Wfloat-equal -Wunreachable-code fi dnl strip off optimizer flags NEWFLAGS=""