The attached small configury patch replaces -Wextra with -W in the
main CFLAGS and CXXFLAGS assignments. A few lines after them, -Wextra
is conditionally added already with XIPH_ADD_CFLAGS([-Wextra]), so
this allows build using older compilers.

Regards.

--
O.S.
diff --git a/configure.ac b/configure.ac
index 6d0fa00..cc5a247 100644
--- a/configure.ac
+++ b/configure.ac
@@ -392,8 +392,8 @@ fi
 XIPH_GCC_VERSION
 
 if test x$ac_cv_c_compiler_gnu = xyes ; then
-       CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes 
-Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef 
-Wmissing-declarations -Wunreachable-code " # -Wcast-qual -Wbad-function-cast 
-Wwrite-strings -Winline -Wconversion
-       CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings 
-Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef 
-Wunreachable-code " # -Wcast-qual -Wbad-function-cast -Wwrite-strings 
-Woverloaded-virtual -Wmissing-declarations
+       CFLAGS="$CFLAGS -Wall -W -Wstrict-prototypes -Wmissing-prototypes 
-Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef 
-Wmissing-declarations -Wunreachable-code " # -Wcast-qual -Wbad-function-cast 
-Wwrite-strings -Winline -Wconversion
+       CXXFLAGS="$CXXFLAGS -Wall -W -Wcast-align -Wshadow -Wwrite-strings 
-Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef 
-Wunreachable-code " # -Wcast-qual -Wbad-function-cast -Wwrite-strings 
-Woverloaded-virtual -Wmissing-declarations
 
 
        XIPH_ADD_CFLAGS([-Wdeclaration-after-statement])
_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to