Suppress a warning for g_object_ref_sink() use in widgets sample
The glib macro always triggers this warning when -Wextra is on, so we have no choice but to suppress it.
This commit is contained in:
parent
4040e35f41
commit
e802eaa44d
1 changed files with 2 additions and 0 deletions
|
|
@ -170,7 +170,9 @@ public:
|
|||
);
|
||||
#endif // GTK+ 3.6/earlier
|
||||
|
||||
wxGCC_WARNING_SUPPRESS(ignored-qualifiers)
|
||||
g_object_ref_sink(widget);
|
||||
wxGCC_WARNING_RESTORE(ignored-qualifiers)
|
||||
|
||||
(void)Create(parent, wxID_ANY, widget);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue