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