From 0897c0597ec5941b3be503f8b13ba7101c465700 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 9 Apr 2020 12:24:44 +0200 Subject: [PATCH] Do not put C++-only options in AM_CPPFLAGS --- config/lyxinclude.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index 9fe42e8847..f0e2ad1c84 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -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 -- 2.39.5