From 3e8d1bd05331163c8047b2ab2a4c9fc38de5f35e Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 11 Aug 2015 14:05:29 +0200 Subject: [PATCH] tests: beware that clang warns about "#define private public" We use this trick to write some test about internal details. But since we use -Werror, clang++ 3.6 dies issueing a warning about it. * configure.ac (warn_tests): Disable this warning. --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 35de4cee..5dc274fc 100644 --- a/configure.ac +++ b/configure.ac @@ -90,7 +90,12 @@ if test "$enable_gcc_warnings" = yes; then # -fno-color-diagnostics: Clang's use of colors in the error # messages is confusing the tests looking at the compiler's output # (e.g., synclines.at). - warn_tests='-Wundef -pedantic -Wsign-compare -fno-color-diagnostics' + # + # -Wno-keyword-macro: We use the "#define private public" dirty + # trick in the test suite to check some private implementation + # details for lalr1.cc. + warn_tests='-Wundef -pedantic -Wsign-compare -fno-color-diagnostics + -Wno-keyword-macro' AC_LANG_PUSH([C]) # Clang supports many of GCC's -W options, but only issues warnings -- 2.45.2