summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-28 09:21:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-28 09:02:50 +0100
commitc4d760b9edf0399955d30a0dfbe5f7b1b1ed37cb (patch)
tree3f072b8348ddfc03b6571f110318c3081b7e0b00 /unoxml
parentd73871584f646cbf02467871fcfc7039ad985ff3 (diff)
add some __attribute__ ((format
found by -Wsuggest-attribute=format Change-Id: Ib4430805ddebf4d90e07a3f9d06fd6d832c244a4 Reviewed-on: https://gerrit.libreoffice.org/81582 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/xpath/xpathapi.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/unoxml/source/xpath/xpathapi.cxx b/unoxml/source/xpath/xpathapi.cxx
index 491be8cab0b7..5d3e6d8c6189 100644
--- a/unoxml/source/xpath/xpathapi.cxx
+++ b/unoxml/source/xpath/xpathapi.cxx
@@ -261,6 +261,9 @@ namespace XPath
extern "C" {
+#if defined __GNUC__
+ __attribute__ ((format (printf, 2, 3)))
+#endif
static void generic_error_func(void *, const char *format, ...)
{
char str[1000];