diff --git a/services/param/base/param_comm.c b/services/param/base/param_comm.c index 0675447fa48bbba0ca6fd13cd4cdb0febc5aa5d3..28327b51afd673a6fed9d81a658a570d05552469 100644 --- a/services/param/base/param_comm.c +++ b/services/param/base/param_comm.c @@ -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) { diff --git a/services/param/liteos/param_client.c b/services/param/liteos/param_client.c index bf17c5597890e836cbcdcbf7d2b5041355fa827c..cb7c8f01c56d3d16fb3fada71a30f7a0aec43455 100644 --- a/services/param/liteos/param_client.c +++ b/services/param/liteos/param_client.c @@ -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; } diff --git a/services/param/liteos/param_litedac.c b/services/param/liteos/param_litedac.c index 29ed5552003efbf99b31be75101bdfe78685d290..327f05aa16823a5ca4e2377b59a57cb9115bca59 100644 --- a/services/param/liteos/param_litedac.c +++ b/services/param/liteos/param_litedac.c @@ -34,6 +34,7 @@ static int InitLocalSecurityLabel(ParamSecurityLabel *security, int isInit) static int FreeLocalSecurityLabel(ParamSecurityLabel *srcLabel) { + (void)srcLabel; return 0; } diff --git a/services/param/liteos/param_service.c b/services/param/liteos/param_service.c index b393ad8ed72f00fe4547602672d67a9eaf045c7e..55453030c5a0c755642e8070c842d6bee73b55ee 100644 --- a/services/param/liteos/param_service.c +++ b/services/param/liteos/param_service.c @@ -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) {