From 241ccf105b0c0a916ae49035587d2650da92e888 Mon Sep 17 00:00:00 2001 From: zhangcui Date: Tue, 7 Mar 2023 07:14:33 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0-Wno-deprecated-declarati?= =?UTF-8?q?ons=E7=BC=96=E8=AF=91=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangcui --- BUILD.gn | 1 + 1 file changed, 1 insertion(+) diff --git a/BUILD.gn b/BUILD.gn index ee979b2..3313ef7 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -124,6 +124,7 @@ ohos_static_library("protobuf_lite_static") { cflags_cc = [ "-Wno-sign-compare" ] cflags = [ "-Wno-sign-compare", + "-Wno-deprecated-declarations", "-D HAVE_PTHREAD", ] if (is_mingw) { -- Gitee From 2e3148508c976fa4f368896d73c4413fbac980af Mon Sep 17 00:00:00 2001 From: zhangcui Date: Tue, 7 Mar 2023 07:59:07 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangcui --- BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 3313ef7..0688dd0 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -123,8 +123,8 @@ ohos_static_library("protobuf_lite_static") { cflags_cc = [ "-Wno-sign-compare" ] cflags = [ - "-Wno-sign-compare", "-Wno-deprecated-declarations", + "-Wno-sign-compare", "-D HAVE_PTHREAD", ] if (is_mingw) { -- Gitee