From 7d8eae5151d786e57af8750740b54e82b8793cd5 Mon Sep 17 00:00:00 2001 From: jixingchun Date: Wed, 22 Jun 2022 11:22:36 +0800 Subject: [PATCH] refactor: graphic_2d remove_weston, add direct cflags Change the indirect cflags public by the graphic_2d to direct cflags -Wno-error=deprecated-declarations is from surface napi_create_date is effect by this cflags Change-Id: I36128f33621fa92560b445f549ab3321cf7de347 Signed-off-by: jixingchun --- frameworks/js/napi/BUILD.gn | 2 ++ frameworks/js/napi/src/reminder/BUILD.gn | 2 ++ 2 files changed, 4 insertions(+) diff --git a/frameworks/js/napi/BUILD.gn b/frameworks/js/napi/BUILD.gn index 46467c8bc..4b6da137f 100644 --- a/frameworks/js/napi/BUILD.gn +++ b/frameworks/js/napi/BUILD.gn @@ -33,6 +33,8 @@ config("native_module_config") { cflags += [ "-DBINDER_IPC_32BIT" ] } + cflags += [ "-Wno-error=deprecated-declarations" ] + defines = [ "ANS_LOG_TAG = \"NOTIFICATION_NAPI\"", "LOG_DOMAIN = 0xD001800", diff --git a/frameworks/js/napi/src/reminder/BUILD.gn b/frameworks/js/napi/src/reminder/BUILD.gn index 3370adb72..51003cb6b 100644 --- a/frameworks/js/napi/src/reminder/BUILD.gn +++ b/frameworks/js/napi/src/reminder/BUILD.gn @@ -25,6 +25,8 @@ config("native_module_config") { cflags += [ "-DBINDER_IPC_32BIT" ] } + cflags += [ "-Wno-error=deprecated-declarations" ] + defines = [ "APP_LOG_TAG = \"NOTIFICATION_REMINDER\"", "LOG_DOMAIN = 0xD001800", -- Gitee