diff --git a/BUILD.gn b/BUILD.gn index a16ddd836ecc6b3d2b3c2ff7408696fcfa7b4db8..d8804e5f127ea9382370041542bc043790b1b984 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -21,6 +21,13 @@ if (defined(ohos_lite)) { "cJSON_Utils.c", ] + if (board_chaintool_type == "iccarm") { + cflags = [ + "--diag_suppress", + "Pe513", + ] + cflags_cc = cflags + } static_library("cjson_static") { sources = cjson_sources public_configs = [ ":cjson_config" ]