From 4d28ff8fabcee9f216ccc6bd923680f3a0886351 Mon Sep 17 00:00:00 2001 From: Aleksandr Semenov Date: Wed, 28 Jun 2023 17:41:20 +0300 Subject: [PATCH] Suppress deprecating for CODECVT Signed-off-by: Aleksandr Semenov --- runtime/base/string_helper.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runtime/base/string_helper.h b/runtime/base/string_helper.h index c1184b40d..91a1a508a 100644 --- a/runtime/base/string_helper.h +++ b/runtime/base/string_helper.h @@ -16,6 +16,8 @@ #ifndef ECMASCRIPT_BASE_STRING_HELP_H #define ECMASCRIPT_BASE_STRING_HELP_H +#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING + #include #include #include @@ -265,4 +267,7 @@ public: } }; } // namespace panda::ecmascript::base + +#undef _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING + #endif // ECMASCRIPT_BASE_STRING_HELP_H -- Gitee