[gimp] Fix two warnings about possibly missing printf format attributes
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Fix two warnings about possibly missing printf format attributes
- Date: Sun, 7 Apr 2013 14:52:09 +0000 (UTC)
commit 236f9f91f9a96dca43185483e1aadeae2f267cdc
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 7 16:47:26 2013 +0200
Fix two warnings about possibly missing printf format attributes
app/widgets/gimptextbuffer-serialize.c | 7 +++++++
libgimpbase/gimpunit.c | 6 ++++++
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimptextbuffer-serialize.c b/app/widgets/gimptextbuffer-serialize.c
index 8db37f5..c4dd85e 100644
--- a/app/widgets/gimptextbuffer-serialize.c
+++ b/app/widgets/gimptextbuffer-serialize.c
@@ -277,6 +277,13 @@ typedef struct
GSList *tags;
} TextSpan;
+static void set_error (GError **err,
+ GMarkupParseContext *context,
+ int error_domain,
+ int error_code,
+ const char *format,
+ ...) G_GNUC_PRINTF (5, 6);
+
static void
set_error (GError **err,
GMarkupParseContext *context,
diff --git a/libgimpbase/gimpunit.c b/libgimpbase/gimpunit.c
index aba477e..1f46209 100644
--- a/libgimpbase/gimpunit.c
+++ b/libgimpbase/gimpunit.c
@@ -345,6 +345,12 @@ gimp_unit_get_plural (GimpUnit unit)
return _gimp_unit_vtable.unit_get_plural (unit);
}
+static gint print (gchar *buf,
+ gint len,
+ gint start,
+ const gchar *fmt,
+ ...) G_GNUC_PRINTF (4, 5);
+
static gint
print (gchar *buf,
gint len,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]