Skip to content

Commit

Permalink
Disable libcxx deprecation warnings for FML's use of UTF-16 string co…
Browse files Browse the repository at this point in the history
…nverters (flutter#34551)
  • Loading branch information
jason-simmons authored Jul 8, 2022
1 parent d09316d commit e390849
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fml/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,18 @@ 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",
"platform/win/wstring_conversion.h",
]

# 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" ]
Expand Down

0 comments on commit e390849

Please sign in to comment.