Add more _DBUS_GNUC_PRINTF annotations

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98658
This commit is contained in:
Simon McVittie 2016-11-09 12:59:18 +00:00
parent 33312ed7f2
commit 259d2bcf59
2 changed files with 5 additions and 1 deletions

View file

@ -87,7 +87,7 @@ DBUS_EXPORT
DBusMessage* dbus_message_new_error_printf (DBusMessage *reply_to,
const char *error_name,
const char *error_format,
...);
...) _DBUS_GNUC_PRINTF (3, 4);
DBUS_EXPORT
DBusMessage* dbus_message_copy (const DBusMessage *message);

View file

@ -34,6 +34,10 @@
#include <stdio.h>
#include <stdlib.h>
static void do_test (int minimum,
const char *format,
...) _DBUS_GNUC_PRINTF (2, 3);
static void
do_test (int minimum,
const char *format,