From 6e23eab0cc21bb8f64d175ba54de1f283c5c5022 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 30 Apr 2014 08:33:09 -0400 Subject: [PATCH] do set compiler flag that compiler doesn't support --- libs/spandsp/configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/spandsp/configure.ac b/libs/spandsp/configure.ac index c2d9019274..19005f9965 100644 --- a/libs/spandsp/configure.ac +++ b/libs/spandsp/configure.ac @@ -462,7 +462,10 @@ intel) COMP_VENDOR_LDFLAGS= ;; *) - COMP_VENDOR_CFLAGS="-std=c99 -Wall -Wunused-variable -Wunused-but-set-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS" + COMP_VENDOR_CFLAGS="-std=c99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS" + if test x"$ac_cv_gcc_unused_but_set_variable" = xyes ; then + COMP_VENDOR_CFLAGS="-Wunused-but-set-variable $COMP_VENDOR_CFLAGS" + fi COMP_VENDOR_LDFLAGS= ;; esac