提交 d7b3ace9 编写于 作者: E Eray_fan

fanlishan050@chinasoftinc.com 删除未使用的赋值,不能使用(void)xxxx

Signed-off-by: NEray_fan <fanlishan050@chinasoftinc.com>
上级 27fa5831
......@@ -30,6 +30,7 @@ INIT_LOCAL_API int GenerateKeyHasCode(const char *buff, size_t len)
INIT_LOCAL_API ParamHandle GetParamHandle(const WorkSpace *workSpace, uint32_t index, const char *name)
{
(void)name;
PARAM_CHECK(workSpace != NULL && workSpace->area != NULL, return -1, "Invalid param");
uint32_t hashCode = (uint32_t)GenerateKeyHasCode(workSpace->fileName, strlen(workSpace->fileName));
uint32_t handle = (hashCode % HASH_BUTT) << 24; // 24 left shift
......@@ -168,6 +169,7 @@ INIT_LOCAL_API uint8_t GetParamValueType(const char *name)
static int CheckParamValueType(const char *name, const char *value, uint8_t paramType)
{
(void)name;
if (paramType == PARAM_TYPE_INT) {
long long int temp1 = 0;
if (strlen(value) > 1 && value[0] == '-' && StringToLL(value, &temp1) != 0) {
......
......@@ -117,6 +117,7 @@ int SystemWaitParameter(const char *name, const char *value, int32_t timeout)
int WatchParamCheck(const char *keyprefix)
{
(void)keyprefix;
return PARAM_CODE_NOT_SUPPORT;
}
......
......@@ -34,6 +34,7 @@ static int InitLocalSecurityLabel(ParamSecurityLabel *security, int isInit)
static int FreeLocalSecurityLabel(ParamSecurityLabel *srcLabel)
{
(void)srcLabel;
return 0;
}
......
......@@ -122,7 +122,6 @@ int SystemWriteParam(const char *name, const char *value)
static void ParamServiceTask(int *arg)
{
char buffer[10] = {0};
(void)arg;
PARAM_LOGI("ParamServiceTask start");
while (1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册