From ee2ec3343ef4b3aeb2cc598683435abfc561a483 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 29 Jul 2018 15:02:41 +0200 Subject: [PATCH] build: enable -Wsuggest-attribute=format And use G_GNUC_PRINTF for the suggested function. --- girwriter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/girwriter.c b/girwriter.c index 1b61de03e..bb82a46f6 100644 --- a/girwriter.c +++ b/girwriter.c @@ -61,6 +61,9 @@ xml_element_free (XmlElement *elem) g_slice_free (XmlElement, elem); } +static void +xml_printf (Xml *xml, const char *fmt, ...) G_GNUC_PRINTF (2, 3); + static void xml_printf (Xml *xml, const char *fmt, ...) {