summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Jamroot.jam1
-rw-r--r--lib/eventHandlerBase.h1
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);