From f261f38fd93e77c30f433520877d8968f996723b Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 19 Aug 2010 19:35:04 +0200 Subject: Add printf format attribute for error creation helper --- gdbus/gdbus.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdbus') 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, ...); -- cgit v1.2.3