From 5105249ecf7ee9a0ab09431a23dc5202f856a132 Mon Sep 17 00:00:00 2001 From: ookami78 Date: Sun, 18 Sep 2022 14:21:46 +0800 Subject: [PATCH] fix warning for signal_test_016.cpp Signed-off-by: ookami78 --- .../unittest/extended/signal/full/signal_test_016.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testsuites/unittest/extended/signal/full/signal_test_016.cpp b/testsuites/unittest/extended/signal/full/signal_test_016.cpp index 1e6eebc4..01e276fc 100644 --- a/testsuites/unittest/extended/signal/full/signal_test_016.cpp +++ b/testsuites/unittest/extended/signal/full/signal_test_016.cpp @@ -49,10 +49,10 @@ 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,14 +67,15 @@ 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) { + (void)arg; while (1) { sleep(1); } @@ -118,7 +119,6 @@ static int TestMultiPthreadKillPendNormal() if (retValue != 0) { exit(retValue); } - int count; retValue = sigwait(&set, &sig); if (retValue != 0) { -- GitLab