diff --git a/BUILD.gn b/BUILD.gn index a6ec37f87838f43c364f7713f2b8d3e99b75ec03..63ee8f94590edbf0b91798408c0932d950d36823 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -121,6 +121,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) {