Pre Merge pull request !1121 from shaopeijie/fix_los_queue_warning

This commit is contained in:
shaopeijie 2024-09-02 12:36:24 +00:00 committed by Gitee
commit 60dfcb9144
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ static UINT32 OsQueueCreate(const CHAR *queueName,
unusedQueue = LOS_DL_LIST_FIRST(&(g_freeQueueList));
}
#else
(void)staticMem;
queue = (UINT8 *)LOS_MemAlloc(m_aucSysMem0, (UINT32)len * msgSize);
if (queue == NULL) {
return LOS_ERRNO_QUEUE_CREATE_NO_MEMORY;