Limit the -Wall flag to C++ compiler

This avoids tons of warning when compiling code, like libiconv, which is
not prepared to this kind of scrutiny of its code quality...
This commit is contained in:
Jean-Marc Lasgouttes 2020-11-20 13:41:45 +01:00
parent b5d1f2f300
commit cbc9a901af

View File

@ -418,7 +418,7 @@ if test x$GXX = xyes; then
fi
dnl Warnings are for preprocessor too
if test x$enable_warnings = xyes ; then
AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra"
AM_CXXFLAGS="$AM_CPPFLAGS -Wall -Wextra"
dnl Shut off warning -Wdeprecated-copy, which triggers too much
dnl note that g++ always accepts -Wno-xxx, even when -Wxxx is an error.
AC_LANG_PUSH(C++)