!983 【OpenHarmony开源贡献者计划2022】删除未使用的变量 count

Merge pull request !983 from leijiawei/master
This commit is contained in:
openharmony_ci 2022-09-06 06:20:52 +00:00 committed by Gitee
commit edd2223083
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 6 additions and 3 deletions

View File

@ -49,10 +49,11 @@ static void *ThreadSetFunc2(void *arg)
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
retValue = sigaddset(&set, SIGUSR1);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
int count;
retValue = sigwait(&set, &sig);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
return NULL;
}
static void *ThreadSetDfl(void *arg)
@ -67,10 +68,11 @@ static void *ThreadSetDfl(void *arg)
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
retValue = sigaddset(&set, SIGUSR1);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
int count;
retValue = sigwait(&set, &sig);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
return NULL;
}
static void *ThreadKill(void *arg)
@ -85,10 +87,11 @@ static void *ThreadKill(void *arg)
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
retValue = sigaddset(&set, SIGUSR1);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
int count;
retValue = sigwait(&set, &sig);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
return NULL;
}
static int TestMultiPthreadFatherProcessExit()