summaryrefslogtreecommitdiff
path: root/glib/gstring.h
diff options
context:
space:
mode:
authorHenrique Dante de Almeida <hdante@gmail.com>2013-01-13 14:05:14 -0200
committerColin Walters <walters@verbum.org>2013-01-13 12:32:40 -0500
commitc219181cb20a57988ed8426be2a5da8acf6aa07c (patch)
tree2c0c8989a0094c2de4ec85a52d7be5e7363bf671 /glib/gstring.h
parent120834db5b1cc735530d2452440ffd8a3b6e48f7 (diff)
downloadglib-c219181cb20a57988ed8426be2a5da8acf6aa07c.tar.gz
Add G_GNUC_PRINTF on all functions with format strings
This allows compilation with clang without errors, even when -Wformat-nonliteral is active (as long as there are no real cases of non literal formatting). https://bugzilla.gnome.org/show_bug.cgi?id=691608
Diffstat (limited to 'glib/gstring.h')
-rw-r--r--glib/gstring.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/glib/gstring.h b/glib/gstring.h
index a97aa4e8a..c6a11aec1 100644
--- a/glib/gstring.h
+++ b/glib/gstring.h
@@ -109,13 +109,15 @@ GString* g_string_ascii_down (GString *string);
GString* g_string_ascii_up (GString *string);
void g_string_vprintf (GString *string,
const gchar *format,
- va_list args);
+ va_list args)
+ G_GNUC_PRINTF(2, 0);
void g_string_printf (GString *string,
const gchar *format,
...) G_GNUC_PRINTF (2, 3);
void g_string_append_vprintf (GString *string,
const gchar *format,
- va_list args);
+ va_list args)
+ G_GNUC_PRINTF(2, 0);
void g_string_append_printf (GString *string,
const gchar *format,
...) G_GNUC_PRINTF (2, 3);