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 /gio/gdbusmethodinvocation.h | |
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 'gio/gdbusmethodinvocation.h')
-rw-r--r-- | gio/gdbusmethodinvocation.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gio/gdbusmethodinvocation.h b/gio/gdbusmethodinvocation.h index 9146b21a5..29cfe63a1 100644 --- a/gio/gdbusmethodinvocation.h +++ b/gio/gdbusmethodinvocation.h @@ -55,12 +55,13 @@ void g_dbus_method_invocation_return_error (GDBusMetho GQuark domain, gint code, const gchar *format, - ...); + ...) G_GNUC_PRINTF(4, 5); void g_dbus_method_invocation_return_error_valist (GDBusMethodInvocation *invocation, GQuark domain, gint code, const gchar *format, - va_list var_args); + va_list var_args) + G_GNUC_PRINTF(4, 0); void g_dbus_method_invocation_return_error_literal (GDBusMethodInvocation *invocation, GQuark domain, gint code, |