summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-29 13:59:09 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-10-29 13:59:09 +0000
commitd154ebc31a69c089192d1aeefa84f40d7231eee1 (patch)
treee4bfc7ab953d7000a5cd5f135f11dcd3751426fc
parenta091d232426eff95907f4ac1e5ea67f64cd8add2 (diff)
parentb679cb0641bda58860fb783465f1600dbf576172 (diff)
downloadgtk-doc-d154ebc31a69c089192d1aeefa84f40d7231eee1.tar.gz
Merge branch 'ignore-gobject-deprecations' into 'master'
Ignore deprecation warnings when scanning types See merge request GNOME/gtk-doc!62
-rw-r--r--gtkdoc/scangobj.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtkdoc/scangobj.py b/gtkdoc/scangobj.py
index bf4e1ea..0156734 100644
--- a/gtkdoc/scangobj.py
+++ b/gtkdoc/scangobj.py
@@ -40,6 +40,12 @@ COMMON_INCLUDES = """
#include <stdio.h>
#include <errno.h>
#include <glib-object.h>
+
+#ifndef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+# define G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+# define G_GNUC_END_IGNORE_DEPRECATIONS
+#endif
+
"""
QUERY_CHILD_PROPS_PROTOTYPE = "extern GParamSpec** %s (gpointer class, guint *n_properties);"
@@ -67,6 +73,8 @@ get_object_types (void)
gpointer g_object_class;
gint i = 0;
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
${get_types}
object_types[i] = G_TYPE_INVALID;
@@ -86,6 +94,8 @@ ${get_types}
g_type_class_unref (g_object_class);
+G_GNUC_END_IGNORE_DEPRECATIONS
+
return object_types;
}