[perl-glib/ebassi/warnings: 6/6] Ignore warnings for g_option_group_free()



commit 69b2b4c043da0b5e2d328125a8288fe38f3ecf8c
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed May 20 14:26:02 2020 +0100

    Ignore warnings for g_option_group_free()
    
    We know it's deprecated, but we can keep using it.

 GOption.xs | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/GOption.xs b/GOption.xs
index 1f1bf95..7997139 100644
--- a/GOption.xs
+++ b/GOption.xs
@@ -48,8 +48,10 @@ no_copy_for_you (gpointer boxed)
 static void
 gperl_option_group_free (GOptionGroup *group)
 {
+        G_GNUC_BEGIN_IGNORE_DEPRECATIONS
        if (!g_hash_table_lookup (transferred_groups, group))
                g_option_group_free (group);
+        G_GNUC_END_IGNORE_DEPRECATIONS
 }
 
 GType


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]