From 2d41efb71e2ef083f8e68fb23f763891cd746e0d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 15 Feb 2004 12:30:40 +0000 Subject: don't assume we can use gcc 2.96+ options --- ares/configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ares/configure.ac b/ares/configure.ac index 448faecb8..362370d67 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="" -- cgit v1.2.3