diff options
author | David Robillard <d@drobilla.net> | 2022-11-25 09:09:01 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-11-25 10:08:49 -0500 |
commit | f33daa2cff42d94401a2eb512a9e0fcbb03f7e34 (patch) | |
tree | b2ede950e07024d8656334bcaba56d12a55db9dd | |
parent | 967f381ee5be01949b6c748b26173d50ed7a2ef0 (diff) | |
download | zix-f33daa2cff42d94401a2eb512a9e0fcbb03f7e34.tar.gz zix-f33daa2cff42d94401a2eb512a9e0fcbb03f7e34.tar.bz2 zix-f33daa2cff42d94401a2eb512a9e0fcbb03f7e34.zip |
Explicitly ignore posix_fadvise() return value
If some error happened here, there's nothing we can do but proceed and try to
copy anyway.
-rw-r--r-- | src/posix/filesystem_posix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/posix/filesystem_posix.c b/src/posix/filesystem_posix.c index a85fbd7..8d65611 100644 --- a/src/posix/filesystem_posix.c +++ b/src/posix/filesystem_posix.c @@ -209,8 +209,8 @@ zix_copy_file(ZixAllocator* const allocator, // Set sequential hints so the kernel can optimize the page cache #if USE_POSIX_FADVISE - posix_fadvise(src_fd, 0, src_stat.st_size, POSIX_FADV_SEQUENTIAL); - posix_fadvise(dst_fd, 0, src_stat.st_size, POSIX_FADV_SEQUENTIAL); + (void)posix_fadvise(src_fd, 0, src_stat.st_size, POSIX_FADV_SEQUENTIAL); + (void)posix_fadvise(dst_fd, 0, src_stat.st_size, POSIX_FADV_SEQUENTIAL); #endif errno = 0; |