build: check -Wsubobject-linkage in C++

* configure.ac (warn_cxx): here.
This commit is contained in:
Akim Demaille
2021-10-11 07:14:05 +02:00
parent 4fe5a375fa
commit 6e6950fbbc
2 changed files with 6 additions and 1 deletions

4
TODO
View File

@@ -1,4 +1,8 @@
* Soon * 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 ** scan-code
The default case is scanning char-per-char. The default case is scanning char-per-char.

View File

@@ -137,7 +137,8 @@ if test "$enable_gcc_warnings" = yes; then
warn_c='-Wbad-function-cast warn_c='-Wbad-function-cast
-Wmissing-prototypes -Wmissing-prototypes
-Wstrict-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' -Wweak-vtables'
# Warnings for the test suite only. # Warnings for the test suite only.
# #