mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 22:49:20 +00:00
Autoconf build: Fix the invalid test for '-Wno-deprecated-copy' flag
(shamelessly stolen from c26db650a1
, which was for cmake build)
The original test was always successfull, even if the flag was invalid.
But checking for '-Wdeprecated-copy' instead yields to error if the
warning does not exist. Existent warning for 'deprecated-copy' implies
that 'no-deprecated-copy' also exist.
This commit is contained in:
parent
c26db650a1
commit
c52049bb83
@ -390,8 +390,8 @@ if test x$GXX = xyes; then
|
|||||||
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++)
|
||||||
AX_CHECK_COMPILE_FLAG([-Wno-deprecated-copy],
|
AX_CHECK_COMPILE_FLAG([-Wdeprecated-copy],
|
||||||
[AM_CXXFLAGS="$AM_CXXFLAGS -Wno-deprecated-copy"], [], [-Werror])
|
[AM_CXXFLAGS="$AM_CXXFLAGS -Wno-deprecated-copy"])
|
||||||
AC_LANG_POP(C++)
|
AC_LANG_POP(C++)
|
||||||
fi
|
fi
|
||||||
case $gxx_version in
|
case $gxx_version in
|
||||||
|
Loading…
Reference in New Issue
Block a user