diff --git a/devicemanager.gni b/devicemanager.gni index e6160d6b..e8576d35 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 ab8cceee..2903afc9 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 b500aebb..2726d7ee 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 8414cba6..85b8e577 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 b7fcfd18..adec2c8a 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",