未验证 提交 ffa11535 编写于 作者: O openharmony_ci 提交者: Gitee

!991 【OpenHarmony开源贡献者计划2022】fix warning: expression result unused

Merge pull request !991 from xiwen1225/void
...@@ -41,7 +41,7 @@ static VOID *Pthread(VOID *temp) ...@@ -41,7 +41,7 @@ static VOID *Pthread(VOID *temp)
CHAR msgrcd[MQUEUE_STANDARD_NAME_LENGTH] = {0}; CHAR msgrcd[MQUEUE_STANDARD_NAME_LENGTH] = {0};
g_cnt = 1; g_cnt = 1;
(void *)(temp); (void)(temp);
ret = mq_receive(g_mqueue, msgrcd, MQUEUE_STANDARD_NAME_LENGTH, nullptr); ret = mq_receive(g_mqueue, msgrcd, MQUEUE_STANDARD_NAME_LENGTH, nullptr);
ICUNIT_GOTO_EQUAL(ret, MQUEUE_SHORT_ARRAY_LENGTH, ret, EXIT); ICUNIT_GOTO_EQUAL(ret, MQUEUE_SHORT_ARRAY_LENGTH, ret, EXIT);
ICUNIT_GOTO_STRING_EQUAL(msgrcd, MQUEUE_SEND_STRING_TEST, msgrcd, EXIT); ICUNIT_GOTO_STRING_EQUAL(msgrcd, MQUEUE_SEND_STRING_TEST, msgrcd, EXIT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册