1.去除编译警告3

This commit is contained in:
payton 2024-01-17 15:45:52 +08:00
parent 9dc28871f1
commit 70e2761173
3 changed files with 8 additions and 4 deletions

View File

@ -922,6 +922,10 @@ void sf_power_off(void)
}
sf_power_off_statistics();
sf_poweroff_check_lpa_excute_cmd();
sf_poweroff_check_lpa_enable_profile();
sf_power_off_check_sms();

View File

@ -69,7 +69,7 @@ SINT32 debug_cmd_parse(SF_CHAR *pString)
return SF_FAILURE;
}
s32ret = stDebugCmdArray[index].pfn_debug_cmd_exe(argc,pargv);
s32ret = stDebugCmdArray[index].pfn_debug_cmd_exe(argc,(char ***)pargv);
return s32ret;

View File

@ -255,11 +255,11 @@ static gboolean chr_get_value(const GDBusPropertyTable *property,
unsigned int len = chr->vlen;
unsigned char *resp = NULL;
unsigned int resp_len = 0;
int ret = -1;
//int ret = -1;
if (NULL != gst_sf_write_cb)
{
ret = gst_sf_write_cb(p, len, &resp, &resp_len);
gst_sf_write_cb(p, len, &resp, &resp_len);
}
if (access("/misc/debug1", F_OK) == 0)
@ -285,7 +285,7 @@ static gboolean chr_get_value(const GDBusPropertyTable *property,
}
printf("resp, len:%d.\n", resp_len);
for (int i = 0; i < resp_len; i++)
for (unsigned int i = 0; i < resp_len; i++)
printf("%02x ", resp[i]);
printf("\n");