!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:
commit
3c010b4717
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue