mirror of
https://github.com/openharmony/distributedschedule_samgr_lite.git
synced 2026-07-19 17:13:31 -04:00
!91 【OpenHarmony开源贡献者计划2022】fix warning: unused function 'InitializeGSaList'
Merge pull request !91 from rtos_ming/unused
This commit is contained in:
@@ -158,7 +158,8 @@ static const char *GetSysCapName(const SysCapImpl *serviceImpl)
|
||||
return serviceImpl->name;
|
||||
}
|
||||
|
||||
static void InitializeGSaList()
|
||||
#ifdef MINI_SAMGR_LITE_RPC
|
||||
static void InitializeGSaList(void)
|
||||
{
|
||||
SaNode *saNode = (SaNode *)malloc(sizeof(SaNode));
|
||||
if (saNode == NULL) {
|
||||
@@ -171,6 +172,7 @@ static void InitializeGSaList()
|
||||
UtilsListInit(&g_saList);
|
||||
UtilsListAdd(&g_saList, &saNode->list);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void InitializeRegistry(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user