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

View File

@@ -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.
#