1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-05-08 04:59:37 +02:00

bees: Avoid unused result with -Werror=unused-result

Fixes: commit 20b8f8ae0b ("bees: use helper function for readahead")
Signed-off-by: Kai Krakow <kai@kaishome.de>
Dieser Commit ist enthalten in:
Kai Krakow
2021-06-19 10:32:30 +02:00
Ursprung 3d95460eb7
Commit 081a6af278
+1 -1
Datei anzeigen
@@ -241,7 +241,7 @@ bees_readahead(int const fd, off_t offset, size_t size)
size_t this_read_size = min(size, sizeof(dummy));
// Ignore errors and short reads.
// 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);
BEESCOUNTADD(readahead_bytes, this_read_size);
offset += this_read_size;