mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-30 09:28:58 +00:00
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:
parent
2f64e2edbb
commit
5ef652b7e3
@ -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,
|
||||
|
||||
@ -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; \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user