mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 06:50:01 +00:00
Add -Wnon-virtual-dtor
This commit is contained in:
@@ -361,6 +361,7 @@ else()
|
|||||||
-Wextra-semi
|
-Wextra-semi
|
||||||
-Werror=shadow
|
-Werror=shadow
|
||||||
-fsigned-char
|
-fsigned-char
|
||||||
|
-Wnon-virtual-dtor
|
||||||
|
|
||||||
$<$<CXX_COMPILER_ID:CLANG>:
|
$<$<CXX_COMPILER_ID:CLANG>:
|
||||||
$<$<VERSION_GREATER:$<CXX_COMPILER_VERSION>,3.8>:
|
$<$<VERSION_GREATER:$<CXX_COMPILER_VERSION>,3.8>:
|
||||||
|
|||||||
@@ -108,6 +108,8 @@ class Namer {
|
|||||||
Namer(Config config, std::set<std::string> keywords)
|
Namer(Config config, std::set<std::string> keywords)
|
||||||
: config_(config), keywords_(std::move(keywords)) {}
|
: config_(config), keywords_(std::move(keywords)) {}
|
||||||
|
|
||||||
|
virtual ~Namer() {}
|
||||||
|
|
||||||
template<typename T> std::string Method(const T &s) const {
|
template<typename T> std::string Method(const T &s) const {
|
||||||
return Method(s.name);
|
return Method(s.name);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user