summaryrefslogtreecommitdiffstats
path: root/gobject/gobjectmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'gobject/gobjectmodule.c')
-rw-r--r--gobject/gobjectmodule.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index 603ca23..002d117 100644
--- a/gobject/gobjectmodule.c
+++ b/gobject/gobjectmodule.c
@@ -1158,10 +1158,7 @@ pyg_type_register(PyTypeObject *class, char *type_name)
/* propagate new constructor API compatility flag from parent to child type */
has_new_constructor_api = g_type_get_qdata(parent_type,
pygobject_has_updated_constructor_key);
- if (has_new_constructor_api == NULL)
- g_warning("Constructor wrapper for %s needs to be updated to the new API",
- g_type_name(parent_type));
- else
+ if (has_new_constructor_api != NULL)
g_type_set_qdata(instance_type, pygobject_has_updated_constructor_key,
has_new_constructor_api);