mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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...
This commit is contained in:
parent
b5d1f2f300
commit
cbc9a901af
@ -418,7 +418,7 @@ if test x$GXX = xyes; then
|
|||||||
fi
|
fi
|
||||||
dnl Warnings are for preprocessor too
|
dnl Warnings are for preprocessor too
|
||||||
if test x$enable_warnings = xyes ; then
|
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 Shut off warning -Wdeprecated-copy, which triggers too much
|
||||||
dnl note that g++ always accepts -Wno-xxx, even when -Wxxx is an error.
|
dnl note that g++ always accepts -Wno-xxx, even when -Wxxx is an error.
|
||||||
AC_LANG_PUSH(C++)
|
AC_LANG_PUSH(C++)
|
||||||
|
Loading…
Reference in New Issue
Block a user