summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-11-05 15:56:09 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-11-06 01:15:04 +0100
commitccce14bcceea0978764f720e1de1b2a9f90fbcb4 (patch)
treee40d2e3c3fa906776d83c276d3a86426c7100e96 /desktop
parent34cecc1f9c5dd41473a84be051d56b37118698aa (diff)
-Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): desktop
Change-Id: I438acf8e63a5d855bb19daee07af0f92b4b609a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142323 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/misc/lockfile.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/source/deployment/misc/lockfile.cxx b/desktop/source/deployment/misc/lockfile.cxx
index 206da8286d76..a46eedc62a3a 100644
--- a/desktop/source/deployment/misc/lockfile.cxx
+++ b/desktop/source/deployment/misc/lockfile.cxx
@@ -91,7 +91,9 @@ namespace desktop {
time_t t = time(nullptr);
for (int i = 0; i<nIdBytes; i++) {
int tmpByte = comphelper::rng::uniform_int_distribution(0, 0xFF);
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH // sprintf (macOS 13 SDK)
sprintf( tmpId+i*2, "%02X", tmpByte );
+ SAL_WNODEPRECATED_DECLARATIONS_POP
}
tmpId[nIdBytes*2]=0x00;
m_aId = OUString::createFromAscii( tmpId );