GtkTextBufferSerialize: Add G_GNUC_PRINTF() to set_error()

This allows the compiler to warn if format string and arguments do not match.
This commit is contained in:
Felix Riemann
2019-04-27 14:34:07 +02:00
parent abb43f3364
commit 0dcbbc3344

View File

@@ -703,6 +703,14 @@ typedef struct
gboolean parsed_tags;
} ParseInfo;
static void
set_error (GError **err,
GMarkupParseContext *context,
int error_domain,
int error_code,
const char *format,
...) G_GNUC_PRINTF(5, 6);
static void
set_error (GError **err,
GMarkupParseContext *context,