diff --git a/BUILD.gn b/BUILD.gn index 9fbc9e0b694c6ce6f10a6cd43d49f212c1368684..0d20cde515e9905a0a1af3199b8307f0153c0d37 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"