commit cbc9a901afd1783a30b4d76663208b0c13530a30 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Fri Nov 20 13:41:45 2020 +0100
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... --- config/lyxinclude.m4 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index 268c501..cf58df7 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -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++) -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs