From ce5aac28d12b275b85f461aab97ffa8e00b8f72c Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Mon, 2 May 2022 07:44:11 -0400 Subject: [PATCH] tweak staprun/relay.c for -Werror=unused-result --- staprun/relay.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/staprun/relay.c b/staprun/relay.c index 6d0aa929b..e6a1213ad 100644 --- a/staprun/relay.c +++ b/staprun/relay.c @@ -296,9 +296,10 @@ static void *reader_thread(void *data) fd = out_fd[cpu]; else fd = out_fd[avail_cpus[0]]; + rc = 0; if (bulkmode) - (void) write(fd, &bufhdr, sizeof(bufhdr)); // write header - rc = write(fd, wbuf, wbytes); // write payload + rc = write(fd, &bufhdr, sizeof(bufhdr)); // write header + rc |= write(fd, wbuf, wbytes); // write payload if (rc <= 0) { perr("Couldn't write to output %d for cpu %d, exiting.", fd, cpu); -- 2.43.5