From 5721602ef786823fe346ef26e314657dac0628ab Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 15 May 2023 10:36:03 +1000 Subject: [PATCH] string: ignore codecvt deprecation for the moment --- string.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/string.cpp b/string.cpp index a28008b1..7b202761 100644 --- a/string.cpp +++ b/string.cpp @@ -12,6 +12,11 @@ #include #include +// HACK: cxx#xxx, codecvt is deprecated, but we don't have a good solution right now. +// Ignoring the warning is the best past forward in the short term. +#pragma GCC diagnostic push +#pragma GCC diagnostic ignore "-Wdeprecated-declaration" + /////////////////////////////////////////////////////////////////////////////// std::string @@ -39,3 +44,6 @@ strbegins (const char *restrict str, const char *restrict prefix) { return 0 == strncmp (prefix, str, strlen (prefix)); } + + +#pragma GCC diagnostic pop