build: enable -Wsuggest-attribute=format

And use G_GNUC_PRINTF for the suggested function.
This commit is contained in:
Christoph Reiter 2018-07-29 15:02:41 +02:00
parent 573fe41788
commit ee2ec3343e

View File

@ -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, ...)
{