[libgsf] gsf-libxml: mark some functions G_GNUC_PRINTF



commit f099c80ea773e3220b47f6aa5dbcea2a20440ab7
Author: Ryan Lortie <desrt desrt ca>
Date:   Sun Dec 8 19:51:39 2013 -0500

    gsf-libxml: mark some functions G_GNUC_PRINTF
    
    Mark these functions as accepting printf-style format strings, so that
    when they pass their arguments on to g_logv() the compiler knows not to
    complain.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720088

 gsf/gsf-libxml.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gsf/gsf-libxml.c b/gsf/gsf-libxml.c
index e632297..a50dc36 100644
--- a/gsf/gsf-libxml.c
+++ b/gsf/gsf-libxml.c
@@ -973,7 +973,7 @@ gsf_xml_in_end_document (GsfXMLInInternal *state)
 }
 
 static void
-gsf_xml_in_warning (G_GNUC_UNUSED GsfXMLInInternal *state, char const *msg, ...)
+gsf_xml_in_warning (G_GNUC_UNUSED GsfXMLInInternal *state, char const *msg, ...) G_GNUC_PRINTF (2, 3)
 {
        va_list args;
 
@@ -983,7 +983,7 @@ gsf_xml_in_warning (G_GNUC_UNUSED GsfXMLInInternal *state, char const *msg, ...)
 }
 
 static void
-gsf_xml_in_error (G_GNUC_UNUSED GsfXMLInInternal *state, char const *msg, ...)
+gsf_xml_in_error (G_GNUC_UNUSED GsfXMLInInternal *state, char const *msg, ...) G_GNUC_PRINTF (2, 3)
 {
        va_list args;
 
@@ -993,7 +993,7 @@ gsf_xml_in_error (G_GNUC_UNUSED GsfXMLInInternal *state, char const *msg, ...)
 }
 
 static void
-gsf_xml_in_fatal_error (G_GNUC_UNUSED GsfXMLInInternal *state, char const *msg, ...)
+gsf_xml_in_fatal_error (G_GNUC_UNUSED GsfXMLInInternal *state, char const *msg, ...) G_GNUC_PRINTF (2, 3)
 {
        va_list args;
 


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