From bf69a1d308580601b364134f91f444d7a7894534 Mon Sep 17 00:00:00 2001
From: s_c_c <shichuchao@huawei.com>
Date: Mon, 24 Jun 2024 17:12:31 +0800
Subject: [PATCH] feat for embedded fix device manager compile error

---
 interfaces/inner_kits/native_cpp/BUILD.gn | 4 ++++
 services/service/BUILD.gn                 | 5 +++++
 utils/BUILD.gn                            | 4 ++++
 3 files changed, 13 insertions(+)

diff --git a/interfaces/inner_kits/native_cpp/BUILD.gn b/interfaces/inner_kits/native_cpp/BUILD.gn
index 81ea6a6..f215264 100644
--- a/interfaces/inner_kits/native_cpp/BUILD.gn
+++ b/interfaces/inner_kits/native_cpp/BUILD.gn
@@ -147,6 +147,10 @@ if (defined(ohos_lite)) {
       "LOG_DOMAIN=0xD004100",
     ]
 
+    cflags = [
+        "-Wno-unused-variable",
+    ]
+
     external_deps = [
       "c_utils:utils",
       # "hisysevent_native:libhisysevent",
diff --git a/services/service/BUILD.gn b/services/service/BUILD.gn
index fd7bb18..e10f99f 100644
--- a/services/service/BUILD.gn
+++ b/services/service/BUILD.gn
@@ -222,6 +222,10 @@ if (defined(ohos_lite)) {
       "LOG_DOMAIN=0xD004100",
     ]
 
+    cflags = [
+        "-Wno-unused-variable",
+    ]
+
     external_deps = [
       "c_utils:utils",
       "dsoftbus:softbus_client",
@@ -230,6 +234,7 @@ if (defined(ohos_lite)) {
       "init:libbegetutil",
       "ipc:ipc_core",
       "safwk:system_ability_fwk",
+      "samgr:samgr_proxy",
     ]
 
     subsystem_name = "distributedhardware"
diff --git a/utils/BUILD.gn b/utils/BUILD.gn
index 59e9e9b..e9b43e2 100644
--- a/utils/BUILD.gn
+++ b/utils/BUILD.gn
@@ -178,6 +178,10 @@ if (defined(ohos_lite)) {
       "LOG_DOMAIN=0xD004100",
     ]
 
+    cflags = [
+        "-Wno-unused-variable",
+    ]
+
     deps = [ "//third_party/mbedtls:mbedtls_shared" ]
 
     external_deps = [
-- 
2.45.2.windows.1

