From c4d760b9edf0399955d30a0dfbe5f7b1b1ed37cb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 28 Oct 2019 09:21:35 +0200 Subject: 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 --- unoxml/source/xpath/xpathapi.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'unoxml') 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]; -- cgit