]> git.lyx.org Git - lyx.git/commitdiff
Revert "Limit the -Wall flag to C++ compiler"
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 20 Nov 2020 13:38:06 +0000 (14:38 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 20 Nov 2020 13:39:35 +0000 (14:39 +0100)
Something is fishy, it breaks compilation.

This reverts commit cbc9a901afd1783a30b4d76663208b0c13530a30.

config/lyxinclude.m4

index cf58df7b17708a242f7f9bff44c8fbc8f493fc33..268c501dea4cd973e691d0bc123501bd2e96aa6b 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_CXXFLAGS="$AM_CPPFLAGS -Wall -Wextra"
+      AM_CPPFLAGS="$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++)