diff --git a/gio/gsettings.c b/gio/gsettings.c index e0407deac..62a170801 100644 --- a/gio/gsettings.c +++ b/gio/gsettings.c @@ -1528,6 +1528,13 @@ g_settings_get (GSettings *settings, value = g_settings_get_value (settings, key); + if (!g_variant_check_format_string (value, format, TRUE)) + { + g_critical ("%s: invalid format string for key '%s' from schema '%s'. " + "This call will probably stop working with a future version of glib.", + G_STRFUNC, key, g_settings_schema_get_id (settings->priv->schema)); + } + va_start (ap, format); g_variant_get_va (value, format, NULL, &ap); va_end (ap);