demos: Fix build failure

gtk+/demos/gtk-demo/css_blendmodes.c: In function ‘update_css_for_blend_mode’:
gtk+/demos/gtk-demo/css_blendmodes.c:49:26: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
                          blend_mode);
                          ^~~~~~~~~~

https://bugzilla.gnome.org/show_bug.cgi?id=769236
This commit is contained in:
Bastien Nocera
2016-07-27 19:13:31 +02:00
committed by Matthias Clasen
parent 331af2afb6
commit 64739f46fc

View File

@ -34,6 +34,8 @@ struct {
{ NULL }
};
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
static void
update_css_for_blend_mode (GtkCssProvider *provider,
const gchar *blend_mode)
@ -53,6 +55,7 @@ update_css_for_blend_mode (GtkCssProvider *provider,
g_bytes_unref (bytes);
g_free (css);
}
#pragma GCC diagnostic pop
static void
row_activated (GtkListBox *listbox,