From 6e6950fbbc6ffe7ca5b475caca8581ade76823db Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 11 Oct 2021 07:14:05 +0200 Subject: build: check -Wsubobject-linkage in C++ * configure.ac (warn_cxx): here. --- TODO | 4 ++++ configure.ac | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index d89894c7..3fd48fac 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,8 @@ * Soon +** yyerror_range in GLR +It seems useless that it is based on glr_stack_item, it should be doable +with location only. + ** scan-code The default case is scanning char-per-char. diff --git a/configure.ac b/configure.ac index 7f6133eb..926dc99f 100644 --- a/configure.ac +++ b/configure.ac @@ -137,7 +137,8 @@ if test "$enable_gcc_warnings" = yes; then warn_c='-Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes' - warn_cxx='-Wextra-semi -Wnoexcept -Wold-style-cast -Wundefined-func-template + warn_cxx='-Wextra-semi -Wnoexcept -Wsubobject-linkage + -Wold-style-cast -Wundefined-func-template -Wweak-vtables' # Warnings for the test suite only. # -- cgit v1.2.1