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