Disable libcxx deprecation warnings for FML's use of UTF-16 string converters (flutter/engine#34551)

This commit is contained in:
Jason Simmons
2022-07-08 15:37:04 -07:00
committed by GitHub
parent 03562f1574
commit 722630e73a

View File

@@ -262,6 +262,10 @@ source_set("string_conversion") {
"string_conversion.h",
]
# Current versions of libcxx have deprecated some of the UTF-16 string
# conversion APIs.
defines = [ "_LIBCPP_DISABLE_DEPRECATION_WARNINGS" ]
if (is_win) {
sources += [
"platform/win/wstring_conversion.cc",
@@ -269,7 +273,7 @@ source_set("string_conversion") {
]
# TODO(cbracken): https://github.com/flutter/flutter/issues/50053
defines = [ "_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING" ]
defines += [ "_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING" ]
}
deps = [ ":build_config" ]