[glib] gmessages: Add G_GNUC_PRINTF mark for g_log_structured



commit 07932996fa68fe11acd287bd0b3e7a7456b50ab5
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Tue Jul 19 01:51:55 2016 +0800

    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

 glib/gmessages.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gmessages.h b/glib/gmessages.h
index 4256e0e..7675735 100644
--- a/glib/gmessages.h
+++ b/glib/gmessages.h
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]