mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 11:56:16 +01:00
gtrace: Add G_GNUC_PRINTF annotation
This allows compilers to check the format placeholders properly. It fixes compilation on clang, which gives a warning about untrusted strings being passed on to subsequent functions which require format placeholders. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
b67185cd92
commit
30782c4c3c
@ -54,7 +54,7 @@ void (g_trace_mark) (gint64 begin_time_nsec,
|
||||
const gchar *group,
|
||||
const gchar *name,
|
||||
const gchar *message_format,
|
||||
...);
|
||||
...) G_GNUC_PRINTF (5, 6);
|
||||
|
||||
#ifndef HAVE_SYSPROF
|
||||
/* Optimise the whole call out */
|
||||
|
Loading…
Reference in New Issue
Block a user