diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-08-19 19:35:04 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-08-19 19:35:04 +0200 |
commit | f261f38fd93e77c30f433520877d8968f996723b (patch) | |
tree | d70f88da15aed72497b60a0904e4602c7962c28b /gdbus | |
parent | 4cd9a52f4cab3da89b9364be6b1dcf8bb953133a (diff) |
Add printf format attribute for error creation helper
Diffstat (limited to 'gdbus')
-rw-r--r-- | gdbus/gdbus.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h index 47e18cfb..c3e72528 100644 --- a/gdbus/gdbus.h +++ b/gdbus/gdbus.h @@ -100,7 +100,8 @@ gboolean g_dbus_unregister_interface(DBusConnection *connection, const char *path, const char *name); DBusMessage *g_dbus_create_error(DBusMessage *message, const char *name, - const char *format, ...); + const char *format, ...) + __attribute__((format(printf, 3, 4))); DBusMessage *g_dbus_create_error_valist(DBusMessage *message, const char *name, const char *format, va_list args); DBusMessage *g_dbus_create_reply(DBusMessage *message, int type, ...); |