]> git.lyx.org Git - lyx.git/blobdiff - config/lyxinclude.m4
Limit the -Wall flag to C++ compiler
[lyx.git] / 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++)