diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2018-09-30 05:46:20 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-09-30 06:08:11 -0400 |
commit | e910a1aef4b2413c627240fc06d2a5696b24747a (patch) | |
tree | 909ac933e1a2131f5eb2cbe4ef9c11508dfba3ca /util | |
parent | b1e07e1e6cc7a8e5445c7aeb9491ae629029011b (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
^
Diffstat (limited to 'util')
-rw-r--r-- | util/options.hh | 2 |
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) {}; |