diff configure.ac @ 398:7d59dd1ba5de

Add -Wextra, fix a couple of warnings it throws up
author Chris Cannam
date Tue, 16 Jun 2015 10:54:54 +0100
parents cff0f07178d6
children 5628c5ec4000
line wrap: on
line diff
--- a/configure.ac	Tue Jun 16 10:26:12 2015 +0100
+++ b/configure.ac	Tue Jun 16 10:54:54 2015 +0100
@@ -44,11 +44,11 @@
 if test "x$GCC" = "xyes"; then
   case " $CXXFLAGS " in
     *[\ \	]-fPIC\ -Wall[\ \	]*) ;;
-    *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;;
+    *) CXXFLAGS="$CXXFLAGS -fPIC -Wall -Wextra" ;;
   esac
   case " $CFLAGS " in
     *[\ \	]-fPIC\ -Wall[\ \	]*) ;;
-    *) CFLAGS="$CFLAGS -fPIC -Wall" ;;
+    *) CFLAGS="$CFLAGS -fPIC -Wall -Wextra" ;;
   esac
 fi
 changequote([,])dnl