[gobject-introspection] Add printf attribute



commit 97072bb47148abc7ab94217a13e82f4281344875
Author: Christian Persch <chpe gnome org>
Date:   Sun Apr 21 18:56:19 2013 +0200

    Add printf attribute
    
    This fixes a compiler warning when using -Wmissing-format-attribute.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698521

 girepository/gdump.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/girepository/gdump.c b/girepository/gdump.c
index 7e02d39..88942f3 100644
--- a/girepository/gdump.c
+++ b/girepository/gdump.c
@@ -38,6 +38,9 @@
 #include <string.h>
 
 static void
+escaped_printf (GOutputStream *out, const char *fmt, ...) G_GNUC_PRINTF (2, 3);
+
+static void
 escaped_printf (GOutputStream *out, const char *fmt, ...)
 {
   char *str;


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