diff --git a/devicemanager.gni b/devicemanager.gni index e6160d6bf5bfa2b23a3f029989587c2de0899b99..e8576d35d8e156e023ffc44a33b454bbe4a97304 100644 --- a/devicemanager.gni +++ b/devicemanager.gni @@ -21,6 +21,4 @@ services_path = "${devicemanager_path}/services" innerkits_path = "${devicemanager_path}/interfaces/inner_kits" -build_flags = [ "-Werror" ] - dm_ldflags = [ "-lpthread" ] diff --git a/interfaces/inner_kits/native_cpp/BUILD.gn b/interfaces/inner_kits/native_cpp/BUILD.gn index ab8cceee7f545733b42796b9943787d05171db0a..2903afc98ca439d4afdc1314540806a5b77ff1c4 100644 --- a/interfaces/inner_kits/native_cpp/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/BUILD.gn @@ -58,8 +58,6 @@ if (defined(ohos_lite)) { "LOG_DOMAIN=0xD004100", ] - cflags_cc = build_flags - deps = [ "${utils_path}:devicemanagerutils", "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", diff --git a/interfaces/inner_kits/native_cpp/src/ipc/lite/ipc_client_stub.cpp b/interfaces/inner_kits/native_cpp/src/ipc/lite/ipc_client_stub.cpp index b500aebb246b669759422f50635686075bcd00ef..2726d7ee3f35d7cde84e56036b1624b97ffef2e0 100644 --- a/interfaces/inner_kits/native_cpp/src/ipc/lite/ipc_client_stub.cpp +++ b/interfaces/inner_kits/native_cpp/src/ipc/lite/ipc_client_stub.cpp @@ -29,7 +29,7 @@ IMPLEMENT_SINGLE_INSTANCE(IpcClientStub); static int32_t ClientIpcInterfaceMsgHandle(const IpcContext *ctx, void *ipcMsg, IpcIo *io, void *arg) { (void)arg; - if (ipcMsg == nullptr || io == nullptr || ctx == nullptr) { + if (ipcMsg == nullptr || io == nullptr) { DMLOG(DM_LOG_ERROR, "invalid param"); return DEVICEMANAGER_INVALID_PARAM; } diff --git a/services/devicemanagerservice/BUILD.gn b/services/devicemanagerservice/BUILD.gn index 8414cba61c6eb090be778fd986d8d5fbd310c47b..85b8e5774a63282d8096f510101e515cb5dfc4a2 100644 --- a/services/devicemanagerservice/BUILD.gn +++ b/services/devicemanagerservice/BUILD.gn @@ -89,8 +89,6 @@ if (defined(ohos_lite)) { "LOG_DOMAIN=0xD004100", ] - cflags_cc = build_flags - ldflags = dm_ldflags deps = [ diff --git a/utils/BUILD.gn b/utils/BUILD.gn index b7fcfd18e5dbd853742155adbac698a8b526bb4b..adec2c8afba9e9274e6f8342ba417d4feecb0cc4 100644 --- a/utils/BUILD.gn +++ b/utils/BUILD.gn @@ -61,8 +61,6 @@ if (defined(ohos_lite)) { "LOG_DOMAIN=0xD004100", ] - cflags_cc = build_flags - deps = [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", "//base/startup/syspara_lite/frameworks/parameter/src:sysparam",