diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-28 20:58:28 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-28 20:58:28 +0100 |
commit | fb3a8aa0fd223f179b9cdf9cdd6ab3c5b219d2a6 (patch) | |
tree | 9fd00ea417622b339346bb56cad1b7e857b433b2 | |
parent | Don't need separate decorator (diff) | |
download | mygrate-fb3a8aa0fd223f179b9cdf9cdd6ab3c5b219d2a6.tar.bz2 mygrate-fb3a8aa0fd223f179b9cdf9cdd6ab3c5b219d2a6.tar.xz mygrate-fb3a8aa0fd223f179b9cdf9cdd6ab3c5b219d2a6.zip |
Add -Wnon-virtual-dtor
-rw-r--r-- | Jamroot.jam | 1 | ||||
-rw-r--r-- | lib/eventHandlerBase.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Jamroot.jam b/Jamroot.jam index 51c4191..5635cbb 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -20,6 +20,7 @@ project : requirements <variant>release:<lto>on <variant>debug:<warnings>extra <variant>debug:<warnings-as-errors>on + <variant>debug:<cflags>-Wnon-virtual-dtor <variant>debug:<cflags>-Wconversion <variant>coverage:<coverage>on <toolset>tidy:<checkxx>boost-* diff --git a/lib/eventHandlerBase.h b/lib/eventHandlerBase.h index df7388c..6187139 100644 --- a/lib/eventHandlerBase.h +++ b/lib/eventHandlerBase.h @@ -9,6 +9,7 @@ namespace MyGrate { using MariaDB_Event_Ptr = std::unique_ptr<MARIADB_RPL_EVENT, decltype(&mariadb_free_rpl_event)>; class EventHandlerBase { public: + virtual ~EventHandlerBase() = default; virtual void tableMap(MariaDB_Event_Ptr); virtual void insertRow(MariaDB_Event_Ptr); virtual void updateRow(MariaDB_Event_Ptr); |