profiler: Add G_GNUC_PRINTF markers to silence warnings

I was getting CI failures like:
 ../gdk/gdkprofiler.c: In function ‘add_markvf’:
../gdk/gdkprofiler.c:111:3: error: function ‘add_markvf’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]
This commit is contained in:
Alexander Larsson 2020-02-12 13:35:42 +01:00
parent 324202a56c
commit d9c59a7c8c

View File

@ -100,6 +100,12 @@ gdk_profiler_add_mark (gint64 start,
"gtk", name, message);
}
static void add_markvf (gint64 start,
guint64 duration,
const char *name,
const char *format,
va_list args) G_GNUC_PRINTF(4, 0);
static void
add_markvf (gint64 start,
guint64 duration,