summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-09-30 05:46:20 -0400
committerBehdad Esfahbod <behdad@behdad.org>2018-09-30 06:08:11 -0400
commite910a1aef4b2413c627240fc06d2a5696b24747a (patch)
tree909ac933e1a2131f5eb2cbe4ef9c11508dfba3ca
parentb1e07e1e6cc7a8e5445c7aeb9491ae629029011b (diff)
[util] Add empty virtual destructor to option_group_t
From clang -Weverything bot: ./options.hh:57:8: warning: 'option_group_t' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor] struct option_group_t ^
-rw-r--r--util/options.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/options.hh b/util/options.hh
index 456e0a0f..0c929a22 100644
--- a/util/options.hh
+++ b/util/options.hh
@@ -56,6 +56,8 @@ void fail (hb_bool_t suggest_help, const char *format, ...) G_GNUC_NORETURN G_GN
struct option_group_t
{
+ virtual ~option_group_t () {}
+
virtual void add_options (struct option_parser_t *parser) = 0;
virtual void pre_parse (GError **error G_GNUC_UNUSED) {};