From cb55ccddd891783a11224697b4c931e0ad851550 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 7 Sep 2021 01:16:24 +0100 Subject: Add missing virtual destructor --- Jamroot.jam | 1 + libdbpp/column.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Jamroot.jam b/Jamroot.jam index 2026f3c..b13bf61 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -14,6 +14,7 @@ project release:on debug:extra debug:on + debug:-Wnon-virtual-dtor coverage:on tidy:boost-* tidy:bugprone-* diff --git a/libdbpp/column.h b/libdbpp/column.h index 4008a81..e4c6895 100644 --- a/libdbpp/column.h +++ b/libdbpp/column.h @@ -15,6 +15,8 @@ namespace DB { /// Abstract class for something that can handle field data. See Column::apply. class DLL_PUBLIC HandleField { public: + virtual ~HandleField() = default; + /// The field is null. virtual void null() = 0; /// The field contains text data. -- cgit v1.2.3