mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
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:
parent
324202a56c
commit
d9c59a7c8c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user