From a61e2cf16e0ed4540adb174ec7cc137f1cd07ef8 Mon Sep 17 00:00:00 2001 From: cunwen Date: Sun, 18 Sep 2022 11:29:44 +0800 Subject: [PATCH] fix warning: expression result unused Signed-off-by: cunwen --- .../unittest/libc/posix/mqueue/full/It_posix_queue_209.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/unittest/libc/posix/mqueue/full/It_posix_queue_209.cpp b/testsuites/unittest/libc/posix/mqueue/full/It_posix_queue_209.cpp index 71de8aa8..4a8e53fc 100644 --- a/testsuites/unittest/libc/posix/mqueue/full/It_posix_queue_209.cpp +++ b/testsuites/unittest/libc/posix/mqueue/full/It_posix_queue_209.cpp @@ -41,7 +41,7 @@ static VOID *Pthread(VOID *temp) CHAR msgrcd[MQUEUE_STANDARD_NAME_LENGTH] = {0}; g_cnt = 1; - (void *)(temp); + (void)(temp); ret = mq_receive(g_mqueue, msgrcd, MQUEUE_STANDARD_NAME_LENGTH, nullptr); ICUNIT_GOTO_EQUAL(ret, MQUEUE_SHORT_ARRAY_LENGTH, ret, EXIT); ICUNIT_GOTO_STRING_EQUAL(msgrcd, MQUEUE_SEND_STRING_TEST, msgrcd, EXIT); -- GitLab