Skip to content

Commit 17d8156

Browse files
committed
Suppress warning on Linux.
1 parent 51c6935 commit 17d8156

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/llfio/v2.0/detail/impl/posix/file_handle.ipp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,10 @@ result<file_handle::extent_pair> file_handle::clone_extents_to(file_handle::exte
591591
See https://github.com/openzfs/zfs/issues/11697 for more.
592592
*/
593593
char b;
594-
(void) ::pread(_v.fd, &b, 1, end);
594+
if(-1 == ::pread(_v.fd, &b, 1, end))
595+
{
596+
return posix_error();
597+
}
595598
}
596599
start = lseek64(_v.fd, end, SEEK_DATA);
597600
#else

0 commit comments

Comments
 (0)