未验证 提交 464ff770 编写于 作者: O openharmony_ci 提交者: Gitee

!888 【OpenHarmony开源贡献者计划2022】fix warning: unused parameter

Merge pull request !888 from rtos_ming/unused-parameter
......@@ -49,6 +49,7 @@ float ConvertMicrosecondToSecond(int x)
return ((x / THOUSAND_UNIT_INT) / THOUSAND_UNIT_FLOAT);
}
#ifndef __LITEOS_M__
static bool CheckDigit(const char *name)
{
size_t nameLen = strlen(name);
......@@ -59,6 +60,7 @@ static bool CheckDigit(const char *name)
}
return true;
}
#endif
int StringToUint(const char *name, unsigned int *value)
{
......@@ -88,6 +90,7 @@ uid_t DecodeUid(const char *name)
}
return p->pw_uid;
#else
(void)name;
return -1;
#endif
}
......@@ -115,6 +118,7 @@ gid_t DecodeGid(const char *name)
endgrent();
return gid;
#else
(void)name;
return -1;
#endif
}
......@@ -407,6 +411,8 @@ void CheckAndCreateDir(const char *fileName)
}
MakeDirRecursive(path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
free(path);
#else
(void)fileName;
#endif
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册