mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
[util] Remove unneeded virtual
clang warning:
../../util/options.hh:72:13: warning: destination for this 'memset' call is a pointer to dynamic class
'option_parser_t'; vtable pointer will be overwritten [-Wdynamic-class-memaccess]
memset (this, 0, sizeof (*this));
~~~~~~ ^
../../util/options.hh:72:13: note: explicitly cast the pointer to silence this warning
memset (this, 0, sizeof (*this));
^
(void*)
This commit is contained in:
1 parent
89ed040b21
commit
b5285b3479
1 file changed
+1
-1
+1
-1
@@ -76,7 +76,7 @@ struct option_parser_t
|
||||
|
||||
add_main_options ();
|
||||
}
|
||||
virtual ~option_parser_t (void)
|
||||
~option_parser_t (void)
|
||||
{
|
||||
g_option_context_free (context);
|
||||
g_ptr_array_foreach (to_free, (GFunc) g_free, nullptr);
|
||||
|
||||
Reference in new issue
Block a user