mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-26 09:56:32 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user