1
0
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:
Kai Krakow 2021-06-19 10:32:30 +02:00
parent 3d95460eb7
commit 081a6af278
No known key found for this signature in database
GPG Key ID: 046FAC3028D76321

View File

@ -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;