提交 99752e84 编写于 作者: Z zhumingxian

fix warning: unused parameter

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