From 17d8156ac89e3b8c6aa19a14e0dd723bd65e0902 Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Mon, 8 Mar 2021 18:42:47 +0000 Subject: Suppress warning on Linux. --- include/llfio/v2.0/detail/impl/posix/file_handle.ipp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/llfio/v2.0/detail/impl/posix/file_handle.ipp b/include/llfio/v2.0/detail/impl/posix/file_handle.ipp index 144f8192..cf84c3db 100644 --- a/include/llfio/v2.0/detail/impl/posix/file_handle.ipp +++ b/include/llfio/v2.0/detail/impl/posix/file_handle.ipp @@ -591,7 +591,10 @@ result file_handle::clone_extents_to(file_handle::exte See https://github.com/openzfs/zfs/issues/11697 for more. */ char b; - (void) ::pread(_v.fd, &b, 1, end); + if(-1 == ::pread(_v.fd, &b, 1, end)) + { + return posix_error(); + } } start = lseek64(_v.fd, end, SEEK_DATA); #else -- cgit v1.2.3