!828 【轻量级 PR】:【OpenHarmony开源贡献者计划2022】fix warning: 'return' with a value, in function returning void

Merge pull request !828 from wangziyi0929/N/A
This commit is contained in:
openharmony_ci 2022-09-21 03:09:31 +00:00 committed by Gitee
commit 3c010b4717
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ static VOID TaskF01(VOID)
atomicRet = LOS_AtomicAdd(&atomicTestCounter, 0x77777777); atomicRet = LOS_AtomicAdd(&atomicTestCounter, 0x77777777);
ICUNIT_ASSERT_EQUAL_VOID(atomicRet, 0x22222221, atomicRet); ICUNIT_ASSERT_EQUAL_VOID(atomicRet, 0x22222221, atomicRet);
readCounter = LOS_AtomicRead(&atomicTestCounter); readCounter = LOS_AtomicRead(&atomicTestCounter);
ICUNIT_ASSERT_EQUAL(readCounter, 0x22222221, readCounter); ICUNIT_ASSERT_EQUAL_VOID(readCounter, 0x22222221, readCounter);
LOS_AtomicSet(&atomicTestCounter, 0xdddddddd); LOS_AtomicSet(&atomicTestCounter, 0xdddddddd);
atomicRet = LOS_AtomicSub(&atomicTestCounter, 0x99999999); atomicRet = LOS_AtomicSub(&atomicTestCounter, 0x99999999);