1.去除编译警告

This commit is contained in:
payton 2023-09-06 21:09:40 +08:00
parent 8ce2b8abbe
commit b1ec28e979
2 changed files with 161 additions and 161 deletions

View File

@ -48,8 +48,8 @@ LPA_API_ERROR sf_enable_profile(UINT8 indexProfiles);
UINT32 sf_profile_name_paired(UINT8 *profileName, UINT8 *operatorName); UINT32 sf_profile_name_paired(UINT8 *profileName, UINT8 *operatorName);
void sf_lpa_profile_active_change(void); void sf_lpa_profile_active_change(void);
UINT8 sf_is_esim_card(); UINT8 sf_is_esim_card(void);
UINT8 sf_is_esim_init_finish(); UINT8 sf_is_esim_init_finish(void);
UINT32 sf_get_profile_total(void); UINT32 sf_get_profile_total(void);
UINT32 sf_is_profile_index_enable(UINT8 index); UINT32 sf_is_profile_index_enable(UINT8 index);
@ -70,7 +70,7 @@ SINT32 sf_lpa_set_download_profile_iccid(SINT8* iccid);
void sf_set_wifi_socket(int fd); void sf_set_wifi_socket(int fd);
int sf_get_wifi_socket(void); int sf_get_wifi_socket(void);
void sf_set_wifi_cmd(UINT8 cmd); void sf_set_wifi_cmd(UINT8 cmd);
UINT8 sf_get_wifi_cmd(); UINT8 sf_get_wifi_cmd(void);
void sf_network_select(UINT8* profileId); void sf_network_select(UINT8* profileId);
void sf_4g_operator_scan(UINT8 mode); void sf_4g_operator_scan(UINT8 mode);

View File

@ -1918,7 +1918,7 @@ void sf_set_esim_card(UINT8 flag)
g_esim_flag = flag; g_esim_flag = flag;
} }
UINT8 sf_is_esim_card() UINT8 sf_is_esim_card(void)
{ {
return g_esim_flag; return g_esim_flag;
} }
@ -1930,7 +1930,7 @@ void sf_set_esim_init_finish(UINT8 flag)
{ {
g_esim_init_finish_flag = flag; g_esim_init_finish_flag = flag;
} }
UINT8 sf_is_esim_init_finish() UINT8 sf_is_esim_init_finish(void)
{ {
return g_esim_init_finish_flag; return g_esim_init_finish_flag;
} }
@ -1971,7 +1971,7 @@ void sf_lpa_profile_info_refresh(void)
void sf_sample_lpa_thread() void sf_sample_lpa_thread(void)
{ {
bool res; bool res;
const LPA_API_VERSION* lpaApiVersion; const LPA_API_VERSION* lpaApiVersion;
@ -2346,7 +2346,7 @@ void sf_sample_lpa_init(void)
if(!SfLpaTskParam.IsRun) if(!SfLpaTskParam.IsRun)
{ {
pthread_create(&SfLpaTskParam.TskId, NULL, sf_sample_lpa_thread, NULL); pthread_create(&SfLpaTskParam.TskId, NULL, (void *)sf_sample_lpa_thread, NULL);
SfLpaTskParam.IsRun = 1; SfLpaTskParam.IsRun = 1;
} }
} }
@ -2369,7 +2369,7 @@ void sf_profile_active_change_thread(ULONG tmp)
void sf_lpa_profile_active_change(void) void sf_lpa_profile_active_change(void)
{ {
pthread_t tLpaProfileActiveTask; pthread_t tLpaProfileActiveTask;
pthread_create(&tLpaProfileActiveTask,NULL,sf_profile_active_change_thread,(void *)NULL); pthread_create(&tLpaProfileActiveTask,NULL,(void *)sf_profile_active_change_thread,(void *)NULL);
} }