diff options
author | Patrick Luby <plubius@neooffice.org> | 2023-06-08 17:28:42 -0400 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-06-16 17:41:09 +0200 |
commit | 422c26ef82e6391071b5c3c03d64d0e5d37c920e (patch) | |
tree | 5aaa4ceb88ce818ea5805b354da37e6136c21216 /tools | |
parent | bd32306c15ae6773c58d1d66d1d17845b93dc854 (diff) |
-Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): tools
(The "clang-format off" in tools/source/misc/json_writer.cxx is necessary
because otherwise the code between the SAL_WNODEPRECATED_DECLARATIONS_PUSH/POP
macros would be ill-formatted in a way that would trigger loplugin:indentation.)
Change-Id: I98af7311e1980829d94aa93f88acf11f0d67d5e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152776
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Patrick Luby <plubius@neooffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/misc/json_writer.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/source/misc/json_writer.cxx b/tools/source/misc/json_writer.cxx index 95210d7e7fa7..865b09d50e6a 100644 --- a/tools/source/misc/json_writer.cxx +++ b/tools/source/misc/json_writer.cxx @@ -159,7 +159,12 @@ static bool writeEscapedSequence(sal_uInt32 ch, char*& pos) // control characters if (ch <= 0x1f) { + // clang-format off + SAL_WNODEPRECATED_DECLARATIONS_PUSH // sprintf (macOS 13 SDK) int written = sprintf(pos, "\\u%.4x", ch); + SAL_WNODEPRECATED_DECLARATIONS_POP + // clang-format on + if (written > 0) pos += written; return true; |