Commit 848a5343 authored by Philip Withnall's avatar Philip Withnall
Browse files

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's avatarPhilip Withnall <pwithnall@endlessos.org>
parent 500db2e0
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment