From: John Mulligan Date: Mon, 13 Jan 2025 21:08:12 +0000 (-0500) Subject: log: ignore return value of write in unit test X-Git-Tag: testing/wip-pdonnell-testing-20250210.202105-debug~5^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f292b789af851ce8f1ac9ae35617061b98ad9caa;p=ceph-ci.git log: ignore return value of write in unit test Fix building a unit test with -Werror enabled. Based on cbodley's fix for a similar build failure. Based-on: a2ebc00a56fcffc57b04fad1e5d134f75ae753eb Signed-off-by: John Mulligan --- diff --git a/src/log/test.cc b/src/log/test.cc index 08ba5bff6af..786ba309582 100644 --- a/src/log/test.cc +++ b/src/log/test.cc @@ -191,7 +191,7 @@ static void readpipe(int fd, int verify) if (p == NULL) { _exit(2); } else if (p[1] != '\0') { - write(2, buf, strlen(buf)); + std::ignore = write(2, buf, strlen(buf)); _exit(3); } }