Add DBUS_GNUC_PRINTF checks to new formatting functions

Otherwise we don't get GCC warnings.
This commit is contained in:
Colin Walters 2010-03-22 10:38:12 -04:00
parent c4371e4bc8
commit 03bb3ce656
2 changed files with 4 additions and 1 deletions

View file

@ -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, ...)
{

View file

@ -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.