build: Add missing G_GNUC_PRINTF annotations

They were suggested by gcc when using -Wsuggest-attribute=format

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Christophe Fergeau 2019-03-14 14:59:10 +01:00
parent 2f64e2edbb
commit 5ef652b7e3
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ SPICE_CONSTRUCTOR_FUNC(spice_log_init)
recorder_dump_on_common_signals(0, 0);
}
G_GNUC_PRINTF(5, 0)
static void spice_logv(const char *log_domain,
GLogLevelFlags log_level,
const char *strloc,

View File

@ -27,6 +27,7 @@
#define OTHER_LOG_DOMAIN "Other"
#define LOG_OTHER_HELPER(suffix, level) \
G_GNUC_PRINTF(1, 2) \
static void G_PASTE(other_, suffix)(const gchar *format, ...) \
{ \
va_list args; \