mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-04-20 15:20:40 +02:00
Add DBUS_GNUC_PRINTF checks to new formatting functions
Otherwise we don't get GCC warnings.
This commit is contained in:
parent
c4371e4bc8
commit
03bb3ce656
2 changed files with 4 additions and 1 deletions
|
|
@ -1175,6 +1175,9 @@ bus_context_get_reply_timeout (BusContext *context)
|
|||
return context->limits.reply_timeout;
|
||||
}
|
||||
|
||||
void
|
||||
bus_context_log (BusContext *context, DBusSystemLogSeverity severity, const char *msg, ...) _DBUS_GNUC_PRINTF (3, 4);
|
||||
|
||||
void
|
||||
bus_context_log (BusContext *context, DBusSystemLogSeverity severity, const char *msg, ...)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -446,7 +446,7 @@ typedef enum {
|
|||
DBUS_SYSTEM_LOG_FATAL
|
||||
} DBusSystemLogSeverity;
|
||||
|
||||
void _dbus_system_log (DBusSystemLogSeverity severity, const char *msg, ...);
|
||||
void _dbus_system_log (DBusSystemLogSeverity severity, const char *msg, ...) _DBUS_GNUC_PRINTF (2, 3);
|
||||
void _dbus_system_logv (DBusSystemLogSeverity severity, const char *msg, va_list args);
|
||||
|
||||
/* Define DBUS_VA_COPY() to do the right thing for copying va_list variables.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue