summaryrefslogtreecommitdiff
path: root/svl/source/misc/lockfilecommon.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/misc/lockfilecommon.cxx')
-rw-r--r--svl/source/misc/lockfilecommon.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svl/source/misc/lockfilecommon.cxx b/svl/source/misc/lockfilecommon.cxx
index 844b446397c7..98d8e052ac0e 100644
--- a/svl/source/misc/lockfilecommon.cxx
+++ b/svl/source/misc/lockfilecommon.cxx
@@ -209,7 +209,9 @@ OUString LockFileCommon::GetCurrentLocalTime()
{
char pDateTime[sizeof("65535.65535.-32768 65535:65535")];
// reserve enough space for hypothetical max length
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH // sprintf (macOS 13 SDK)
sprintf( pDateTime, "%02" SAL_PRIuUINT32 ".%02" SAL_PRIuUINT32 ".%4" SAL_PRIdINT32 " %02" SAL_PRIuUINT32 ":%02" SAL_PRIuUINT32, sal_uInt32(aDateTime.Day), sal_uInt32(aDateTime.Month), sal_Int32(aDateTime.Year), sal_uInt32(aDateTime.Hours), sal_uInt32(aDateTime.Minutes) );
+ SAL_WNODEPRECATED_DECLARATIONS_POP
aTime = OUString::createFromAscii( pDateTime );
}
}