diff options
author | Henrique Dante de Almeida <hdante@gmail.com> | 2013-01-13 14:05:14 -0200 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-01-13 12:15:24 -0500 |
commit | 28bd57d6c80d6a0056ef64c5d238c2ad53586997 (patch) | |
tree | 383d36eebbec6c8ed4ed87da76f5cf63728fa6bd /glib/gerror.c | |
parent | de001225c39a4c4f5773b88b9805456f60d11374 (diff) | |
download | glib-wip/format-errors.tar.gz |
Add G_GNUC_PRINTF on all functions with format stringswip/format-errors
This allows compilation with clang wihtout 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/gerror.c')
-rw-r--r-- | glib/gerror.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/glib/gerror.c b/glib/gerror.c index e6ce3c072..2adbdf84d 100644 --- a/glib/gerror.c +++ b/glib/gerror.c @@ -645,6 +645,7 @@ g_clear_error (GError **err) } } +G_GNUC_PRINTF(2, 0) static void g_error_add_prefix (gchar **string, const gchar *format, |