未验证 提交 89333ede 编写于 作者: O openharmony_ci 提交者: Gitee

!1197 【OpenHarmony开源贡献者计划2022】 修复问题:不处理返回值时,需要添加(void)

Merge pull request !1197 from Aiminabb/master
......@@ -32,7 +32,7 @@
void SystemInit(void)
{
SignalInit();
MakeDirRecursive("/dev/unix/socket", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
(void)MakeDirRecursive("/dev/unix/socket", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
}
void LogInit(void)
......@@ -56,11 +56,11 @@ void SystemConfig(void)
#ifdef LITEOS_SUPPORT
InitParamService();
// parse parameters
LoadDefaultParams("/system/etc/param/ohos_const", LOAD_PARAM_NORMAL);
LoadDefaultParams("/vendor/etc/param", LOAD_PARAM_NORMAL);
LoadDefaultParams("/system/etc/param", LOAD_PARAM_ONLY_ADD);
(void)LoadDefaultParams("/system/etc/param/ohos_const", LOAD_PARAM_NORMAL);
(void)LoadDefaultParams("/vendor/etc/param", LOAD_PARAM_NORMAL);
(void)LoadDefaultParams("/system/etc/param", LOAD_PARAM_ONLY_ADD);
LoadPersistParams();
(void)LoadPersistParams();
#endif
// read config
ReadConfig();
......@@ -79,7 +79,7 @@ void SystemConfig(void)
DoJob("post-init");
#ifndef __LINUX__
TriggerStage(EVENT3, EVENT3_WAITTIME, QS_STAGE3);
InitStageFinished();
(void)InitStageFinished();
#endif
ReleaseAllJobs();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册