comparison configure @ 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 3bfc44d26963
comparison
equal deleted inserted replaced
397:14b34e85523b 398:7d59dd1ba5de
3948 3948
3949 3949
3950 if test "x$GCC" = "xyes"; then 3950 if test "x$GCC" = "xyes"; then
3951 case " $CXXFLAGS " in 3951 case " $CXXFLAGS " in
3952 *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;; 3952 *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;;
3953 *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;; 3953 *) CXXFLAGS="$CXXFLAGS -fPIC -Wall -Wextra" ;;
3954 esac 3954 esac
3955 case " $CFLAGS " in 3955 case " $CFLAGS " in
3956 *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;; 3956 *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;;
3957 *) CFLAGS="$CFLAGS -fPIC -Wall" ;; 3957 *) CFLAGS="$CFLAGS -fPIC -Wall -Wextra" ;;
3958 esac 3958 esac
3959 fi 3959 fi
3960 3960
3961 3961
3962 3962