summaryrefslogtreecommitdiff
path: root/tools/source/stream/stream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/stream/stream.cxx')
-rw-r--r--tools/source/stream/stream.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index d42cefdf63cf..b31699e835df 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -1347,7 +1347,9 @@ void SvStream::RefreshBuffer()
SvStream& SvStream::WriteInt32AsString(sal_Int32 nInt32)
{
char buffer[12];
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH // sprintf (macOS 13 SDK)
std::size_t nLen = sprintf(buffer, "%" SAL_PRIdINT32, nInt32);
+ SAL_WNODEPRECATED_DECLARATIONS_POP
WriteBytes(buffer, nLen);
return *this;
}
@@ -1355,7 +1357,9 @@ SvStream& SvStream::WriteInt32AsString(sal_Int32 nInt32)
SvStream& SvStream::WriteUInt32AsString(sal_uInt32 nUInt32)
{
char buffer[11];
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH // sprintf (macOS 13 SDK)
std::size_t nLen = sprintf(buffer, "%" SAL_PRIuUINT32, nUInt32);
+ SAL_WNODEPRECATED_DECLARATIONS_POP
WriteBytes(buffer, nLen);
return *this;
}