summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-08-19 19:35:04 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-08-19 19:35:04 +0200
commitf261f38fd93e77c30f433520877d8968f996723b (patch)
treed70f88da15aed72497b60a0904e4602c7962c28b /gdbus
parent4cd9a52f4cab3da89b9364be6b1dcf8bb953133a (diff)
Add printf format attribute for error creation helper
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/gdbus.h3
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, ...);