summaryrefslogtreecommitdiff
path: root/tests/atlocal.in
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2018-09-06 18:06:58 +0200
committerAkim Demaille <akim.demaille@gmail.com>2018-09-06 21:28:24 +0200
commit2c29a70819b79e343fa292c549975bdc7ae720b8 (patch)
tree89d8bf77f15fe2c5ff997417d33f72b0fe390c72 /tests/atlocal.in
parentcf31256f9a4fc906b3e195703e4c98aa2411635a (diff)
downloadbison-2c29a70819b79e343fa292c549975bdc7ae720b8.tar.gz
tests: fix maintainer-check-g++ make recipe
Clang++ issues warnings when it's used to compile C. This make target is precisely checking whether we can do that. * configure.ac (NO_DEPRECATED_CXXFLAGS): New. * tests/atlocal.in: Use it.
Diffstat (limited to 'tests/atlocal.in')
-rw-r--r--tests/atlocal.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in
index 93ba7613..00cb92c9 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -42,6 +42,7 @@ GCC='@GCC@'
# sets CFLAGS to this.
NO_WERROR_CFLAGS='@CFLAGS@ @WARN_CFLAGS@ @WARN_CFLAGS_TEST@'
NO_WERROR_CXXFLAGS='@CXXFLAGS@ @WARN_CXXFLAGS@ @WARN_CXXFLAGS_TEST@'
+WNO_DEPRECATED_CXXFLAGS='@WNO_DEPRECATED_CXXFLAGS@'
# But most of the time, we want -Werror.
CFLAGS="$NO_WERROR_CFLAGS @WERROR_CFLAGS@"
@@ -99,7 +100,7 @@ if "$at_arg_compile_c_with_cxx"; then
CC_IS_CXX=1
CC=$CXX
NO_WERROR_CFLAGS=$NO_WERROR_CXXFLAGS
- CFLAGS=$CXXFLAGS
+ CFLAGS="$CXXFLAGS $WNO_DEPRECATED_CXXFLAGS"
BISON_C_WORKS=$BISON_CXX_WORKS
else
CC_IS_CXX=0