From f292b789af851ce8f1ac9ae35617061b98ad9caa Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 13 Jan 2025 16:08:12 -0500 Subject: [PATCH] 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 --- src/log/test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.39.5