From: Ralf Habacker Date: Tue, 23 Nov 2021 15:00:37 +0000 (+0100) Subject: Add _DBUS_GNUC_PRINTF annotation to _dbus_win_set_error_from_last_error() X-Git-Tag: dbus-1.13.20~21^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15e1285a11f789596812f3b8bc97064d0292b872;p=thirdparty%2Fdbus.git Add _DBUS_GNUC_PRINTF annotation to _dbus_win_set_error_from_last_error() This makes printf like format string related issues visible. --- diff --git a/dbus/dbus-sysdeps-win.h b/dbus/dbus-sysdeps-win.h index 2775cfc63..d63fb4f18 100644 --- a/dbus/dbus-sysdeps-win.h +++ b/dbus/dbus-sysdeps-win.h @@ -98,7 +98,7 @@ HANDLE _dbus_spawn_program (const char *name, DBUS_PRIVATE_EXPORT void _dbus_win_set_error_from_last_error (DBusError *error, const char *format, - ...); + ...) _DBUS_GNUC_PRINTF (2, 3); DBUS_PRIVATE_EXPORT HANDLE _dbus_win_event_create_inheritable (DBusError *error);