Commit 03bb3ce6 authored by Colin Walters's avatar Colin Walters
Browse files

Add DBUS_GNUC_PRINTF checks to new formatting functions

Otherwise we don't get GCC warnings.
parent c4371e4b
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment