From 5dc113283c0a721c4027026bb8de7243585f1289 Mon Sep 17 00:00:00 2001 From: Simon Feltman Date: Fri, 20 Feb 2015 21:59:10 -0800 Subject: [PATCH] Ignore deprecation warning for g_option_group_free() --- gi/pygoptiongroup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gi/pygoptiongroup.c b/gi/pygoptiongroup.c index 4c1664d5..3248b189 100644 --- a/gi/pygoptiongroup.c +++ b/gi/pygoptiongroup.c @@ -118,8 +118,11 @@ pyg_option_group_dealloc(PyGOptionGroup *self) { GOptionGroup *tmp = self->group; self->group = NULL; - if (tmp) + if (tmp) { + G_GNUC_BEGIN_IGNORE_DEPRECATIONS g_option_group_free(tmp); + G_GNUC_END_IGNORE_DEPRECATIONS + } } PyObject_Del(self); -- 2.11.4.GIT