diff --git a/BUILD.gn b/BUILD.gn index f7eeeac708715ce6baee5e3fda22194700da64f3..8e72915d4bdd254ce2a8ef9e6caa3fe7908de29f 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -69,6 +69,12 @@ if (defined(ohos_lite)) { } lite_library("mbedtls_static") { + if (board_toolchain_type == "clang") { + cflags = [ + "-Wno-error=parentheses-equality", + "-Wno-error=implicit-function-declaration", + ] + } target_type = "static_library" public_configs = [ ":mbedtls_config" ] output_name = "mbedtls"