desktop/source/deployment/misc/lockfile.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit ccce14bcceea0978764f720e1de1b2a9f90fbcb4 Author: Stephan Bergmann <[email protected]> AuthorDate: Sat Nov 5 15:56:09 2022 +0100 Commit: Stephan Bergmann <[email protected]> CommitDate: Sun Nov 6 01:15:04 2022 +0100 -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 <[email protected]> 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 );
