From d4986f7fa81e401286f5fc201a1c4bfda895fae4 Mon Sep 17 00:00:00 2001 From: yuanyao Date: Tue, 21 Mar 2023 15:42:27 +0800 Subject: [PATCH] Previewer supports ets_utils and buffer ignore the deprecated warning which may block compiling Issue: https://gitee.com/openharmony/arkui_ace_engine/issues/I6OE3C Signed-off-by: yuanyao Change-Id: I2fc5f33b98e222797d15c4563deafe71c838ad5f --- BUILD.gn | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 0688dd0..847b6a1 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -121,7 +121,10 @@ ohos_static_library("protobuf_lite_static") { defines = [ "_FILE_OFFSET_BITS_SET_LSEEK" ] } - cflags_cc = [ "-Wno-sign-compare" ] + cflags_cc = [ + "-Wno-sign-compare", + "-Wno-deprecated-declarations", + ] cflags = [ "-Wno-deprecated-declarations", "-Wno-sign-compare", @@ -194,10 +197,14 @@ ohos_shared_library("protobuf") { "src/google/protobuf/**/*.inc", "src", ] - cflags_cc = [ "-Wno-sign-compare" ] + cflags_cc = [ + "-Wno-sign-compare", + "-Wno-deprecated-declarations", + ] cflags = [ "-Wno-sign-compare", "-D HAVE_PTHREAD", + "-Wno-deprecated-declarations", ] deps = [ ":protobuf_lite" ] @@ -271,10 +278,14 @@ ohos_static_library("protobuf_static") { "src/google/protobuf/**/*.inc", "src", ] - cflags_cc = [ "-Wno-sign-compare" ] + cflags_cc = [ + "-Wno-sign-compare", + "-Wno-deprecated-declarations", + ] cflags = [ "-Wno-sign-compare", "-D HAVE_PTHREAD", + "-Wno-deprecated-declarations", ] deps = [ ":protobuf_lite_static" ] @@ -376,11 +387,13 @@ if (current_toolchain == host_toolchain) { "-Wno-sign-compare", "-Wno-unused-function", "-Wno-unused-private-field", + "-Wno-deprecated-declarations", ] cflags = [ "-Wno-sign-compare", "-D HAVE_PTHREAD", "-Wno-unused-function", + "-Wno-deprecated-declarations", ] deps = [ @@ -486,11 +499,13 @@ if (current_toolchain == host_toolchain) { "-Wno-sign-compare", "-Wno-unused-function", "-Wno-unused-private-field", + "-Wno-deprecated-declarations", ] cflags = [ "-Wno-sign-compare", "-D HAVE_PTHREAD", "-Wno-unused-function", + "-Wno-deprecated-declarations", ] deps = [ @@ -514,10 +529,14 @@ if (current_toolchain == host_toolchain) { "src", ] deps = [ ":protoc_static_lib" ] - cflags_cc = [ "-Wno-sign-compare" ] + cflags_cc = [ + "-Wno-sign-compare", + "-Wno-deprecated-declarations", + ] cflags = [ "-Wno-sign-compare", "-D HAVE_PTHREAD", + "-Wno-deprecated-declarations", ] subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}" -- Gitee