gmessages: Add G_GNUC_PRINTF mark for g_log_structured

It is required to avoid non-literal format string warning when using clang.

https://bugzilla.gnome.org/show_bug.cgi?id=744456
This commit is contained in:
Ting-Wei Lan 2016-07-19 01:51:55 +08:00
parent 0346254502
commit 07932996fa

View File

@ -191,7 +191,7 @@ GLIB_AVAILABLE_IN_2_50
void g_log_structured (const gchar *log_domain,
GLogLevelFlags log_level,
const gchar *format,
...)
...) G_GNUC_PRINTF (3, 4)
G_GNUC_NULL_TERMINATED;
GLIB_AVAILABLE_IN_2_50