From 1b2fa783af31cf3ae030dd9dc55cbcb7dd4c7220 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 5 Nov 2022 16:04:41 +0100 Subject: [PATCH] -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): xmlsecurity Change-Id: I58b01510fd41256660f703a3b62901fe286ffb93 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142337 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- xmlsecurity/source/helper/xsecsign.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xmlsecurity/source/helper/xsecsign.cxx b/xmlsecurity/source/helper/xsecsign.cxx index 5634ed502e8b..6788f694ec2d 100644 --- a/xmlsecurity/source/helper/xsecsign.cxx +++ b/xmlsecurity/source/helper/xsecsign.cxx @@ -44,7 +44,9 @@ OUString XSecController::createId() int length = 3; for (sal_uInt8 i : aSeq) { + SAL_WNODEPRECATED_DECLARATIONS_PUSH // sprintf (macOS 13 SDK) length += sprintf(str+length, "%04x", i); + SAL_WNODEPRECATED_DECLARATIONS_POP } return OUString::createFromAscii(str);