summaryrefslogtreecommitdiff
path: root/gobject/gvalue.c
diff options
context:
space:
mode:
Diffstat (limited to 'gobject/gvalue.c')
-rw-r--r--gobject/gvalue.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gobject/gvalue.c b/gobject/gvalue.c
index d2da4166f..699fc79e3 100644
--- a/gobject/gvalue.c
+++ b/gobject/gvalue.c
@@ -211,15 +211,15 @@ g_value_init (GValue *value,
value_table->value_init (value);
}
else if (G_VALUE_TYPE (value))
- g_warning ("%s: cannot initialize GValue with type '%s', the value has already been initialized as '%s'",
- G_STRLOC,
- g_type_name (g_type),
- g_type_name (G_VALUE_TYPE (value)));
+ g_critical ("%s: cannot initialize GValue with type '%s', the value has already been initialized as '%s'",
+ G_STRLOC,
+ g_type_name (g_type),
+ g_type_name (G_VALUE_TYPE (value)));
else /* !G_TYPE_IS_VALUE (g_type) */
- g_warning ("%s: cannot initialize GValue with type '%s', %s",
- G_STRLOC,
- g_type_name (g_type),
- value_table ? "this type is abstract with regards to GValue use, use a more specific (derived) type" : "this type has no GTypeValueTable implementation");
+ g_critical ("%s: cannot initialize GValue with type '%s', %s",
+ G_STRLOC,
+ g_type_name (g_type),
+ value_table ? "this type is abstract with regards to GValue use, use a more specific (derived) type" : "this type has no GTypeValueTable implementation");
return value;
}
@@ -407,7 +407,7 @@ g_value_set_instance (GValue *value,
error_msg = value_table->collect_value (value, 1, &cvalue, 0);
if (error_msg)
{
- g_warning ("%s: %s", G_STRLOC, error_msg);
+ g_critical ("%s: %s", G_STRLOC, error_msg);
g_free (error_msg);
/* we purposely leak the value here, it might not be
@@ -471,7 +471,7 @@ g_value_init_from_instance (GValue *value,
error_msg = value_table->collect_value (value, 1, &cvalue, 0);
if (error_msg)
{
- g_warning ("%s: %s", G_STRLOC, error_msg);
+ g_critical ("%s: %s", G_STRLOC, error_msg);
g_free (error_msg);
/* we purposely leak the value here, it might not be