Skip to content

Commit 916b575

Browse files
authored
Merge pull request ceph#61354 from phlogistonjohn/jjm-fix-log-test
log: ignore return value of write in unit test Reviewed-by: Casey Bodley <[email protected]>
2 parents 48c1800 + f292b78 commit 916b575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/log/test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static void readpipe(int fd, int verify)
191191
if (p == NULL) {
192192
_exit(2);
193193
} else if (p[1] != '\0') {
194-
write(2, buf, strlen(buf));
194+
std::ignore = write(2, buf, strlen(buf));
195195
_exit(3);
196196
}
197197
}

0 commit comments

Comments
 (0)