Commit d154ebc3 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Merge branch 'ignore-gobject-deprecations' into 'master'

Ignore deprecation warnings when scanning types

See merge request !62
parents a091d232 b679cb06
Pipeline #225459 passed with stages
in 3 minutes and 14 seconds
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment