Do not put C++-only options in AM_CPPFLAGS

This commit is contained in:
Jean-Marc Lasgouttes 2020-04-09 12:24:44 +02:00
parent bcde3d0016
commit c3bf053dd3

View File

@ -409,7 +409,8 @@ if test x$GXX = xyes; then
dnl Warnings are for preprocessor too
if test x$enable_warnings = xyes ; then
case $gxx_version in
9.*) AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra -Wno-deprecated-copy";;
9.*) AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra"
AM_CXXFLAGS="$AM_CXXFLAGS -Wno-deprecated-copy";;
*) AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra";;
esac
fi