提交 b8972eda 编写于 作者: A Alessandro Ghedini 提交者: Rich Salz

GH804: Fix unused-result warnings in dasync

Signed-off-by: NRich Salz <rsalz@openssl.org>
Reviewed-by: NMatt Caswell <matt@openssl.org>
上级 0543603a
...@@ -338,7 +338,8 @@ static void dummy_pause_job(void) { ...@@ -338,7 +338,8 @@ static void dummy_pause_job(void) {
#if defined(ASYNC_WIN) #if defined(ASYNC_WIN)
WriteFile(pipefds[1], &buf, 1, &numwritten, NULL); WriteFile(pipefds[1], &buf, 1, &numwritten, NULL);
#elif defined(ASYNC_POSIX) #elif defined(ASYNC_POSIX)
write(pipefds[1], &buf, 1); if (write(pipefds[1], &buf, 1) < 0)
return;
#endif #endif
/* Ignore errors - we carry on anyway */ /* Ignore errors - we carry on anyway */
...@@ -348,7 +349,8 @@ static void dummy_pause_job(void) { ...@@ -348,7 +349,8 @@ static void dummy_pause_job(void) {
#if defined(ASYNC_WIN) #if defined(ASYNC_WIN)
ReadFile(pipefds[0], &buf, 1, &numread, NULL); ReadFile(pipefds[0], &buf, 1, &numread, NULL);
#elif defined(ASYNC_POSIX) #elif defined(ASYNC_POSIX)
read(pipefds[0], &buf, 1); if (read(pipefds[0], &buf, 1) < 0)
return;
#endif #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册