[core] quiet coverity warnings

This commit is contained in:
Glenn Strauss 2021-10-01 20:59:08 -04:00
parent 23fe1312e5
commit 434fab4929
2 changed files with 2 additions and 2 deletions

View File

@ -918,7 +918,7 @@ void chunkqueue_internal_pipes(int init) {
if (-1 != cqpipes[0]) { close(cqpipes[0]); cqpipes[0] = -1; }
if (-1 != cqpipes[1]) { close(cqpipes[1]); cqpipes[1] = -1; }
if (init)
fdevent_pipe_cloexec(cqpipes, 262144);
if (0 != fdevent_pipe_cloexec(cqpipes, 262144)) { } /*(ignore error)*/
}
__attribute_cold__

View File

@ -637,7 +637,7 @@ int fdevent_pipe_cloexec (int * const fds, const unsigned int bufsz_hint) {
}
#ifdef F_SETPIPE_SZ
if (bufsz_hint > 65536)
fcntl(fds[1], F_SETPIPE_SZ, bufsz_hint);
if (0 != fcntl(fds[1], F_SETPIPE_SZ, bufsz_hint)) { } /*(ignore error)*/
#endif
return 0;
#endif