gmessage: Suppress string format literal warning

https://bugzilla.gnome.org/show_bug.cgi?id=769029
This commit is contained in:
Víctor Manuel Jáquez Leal 2016-07-21 11:46:55 +02:00 committed by Matthias Clasen
parent e4623800aa
commit d311177948

View File

@ -1293,6 +1293,9 @@ color_reset (gboolean use_color)
return "\033[0m"; return "\033[0m";
} }
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
/** /**
* g_log_structured: * g_log_structured:
* @log_domain: log domain, usually %G_LOG_DOMAIN * @log_domain: log domain, usually %G_LOG_DOMAIN
@ -1473,6 +1476,8 @@ g_log_structured (const gchar *log_domain,
va_end (args); va_end (args);
} }
#pragma GCC diagnostic pop
static GLogWriterOutput _g_log_writer_fallback (GLogLevelFlags log_level, static GLogWriterOutput _g_log_writer_fallback (GLogLevelFlags log_level,
const GLogField *fields, const GLogField *fields,
gsize n_fields, gsize n_fields,