]> git.lyx.org Git - lyx.git/commitdiff
Limit the -Wall flag to C++ compiler
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 20 Nov 2020 12:41:45 +0000 (13:41 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 20 Nov 2020 12:45:30 +0000 (13:45 +0100)
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

index 268c501dea4cd973e691d0bc123501bd2e96aa6b..cf58df7b17708a242f7f9bff44c8fbc8f493fc33 100644 (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++)