mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
bees: Avoid unused result with -Werror=unused-result
Fixes: commit 20b8f8ae0b392 ("bees: use helper function for readahead") Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
parent
3d95460eb7
commit
081a6af278
@ -241,7 +241,7 @@ bees_readahead(int const fd, off_t offset, size_t size)
|
|||||||
size_t this_read_size = min(size, sizeof(dummy));
|
size_t this_read_size = min(size, sizeof(dummy));
|
||||||
// Ignore errors and short reads.
|
// Ignore errors and short reads.
|
||||||
// It turns out our size parameter isn't all that accurate.
|
// It turns out our size parameter isn't all that accurate.
|
||||||
pread(fd, dummy, this_read_size, offset);
|
(void)!pread(fd, dummy, this_read_size, offset);
|
||||||
BEESCOUNT(readahead_count);
|
BEESCOUNT(readahead_count);
|
||||||
BEESCOUNTADD(readahead_bytes, this_read_size);
|
BEESCOUNTADD(readahead_bytes, this_read_size);
|
||||||
offset += this_read_size;
|
offset += this_read_size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user