[glib] gmessage: Suppress string format literal warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gmessage: Suppress string format literal warning
- Date: Thu, 21 Jul 2016 11:13:01 +0000 (UTC)
commit d3111779481a7a3917338c86b6cb8d26b06f5a33
Author: Víctor Manuel Jáquez Leal <vjaquez igalia com>
Date: Thu Jul 21 11:46:55 2016 +0200
gmessage: Suppress string format literal warning
https://bugzilla.gnome.org/show_bug.cgi?id=769029
glib/gmessages.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/glib/gmessages.c b/glib/gmessages.c
index 75e0e87..e64c268 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]