Suppress deprecation warnings for g_option_group_free()

Closes #17877.
This commit is contained in:
Vadim Zeitlin 2017-11-14 00:32:30 +01:00
parent 99367a1530
commit ad448da284

View File

@ -500,7 +500,12 @@ wxGUIAppTraits::GetStandardCmdLineOptions(wxArrayString& names,
desc.push_back(wxString(entryDesc));
}
// This function is deprecated in favour of g_option_group_unref(), but
// we need to continue using it as long as we support glib < 2.44 where
// the new function was introduced, so just suppress the warning.
wxGCC_WARNING_SUPPRESS(deprecated-declarations)
g_option_group_free (gtkOpts);
wxGCC_WARNING_RESTORE(deprecated-declarations)
}
return usage;