aboutsummaryrefslogtreecommitdiffstats
path: root/src/system.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-24 16:40:44 -0500
committerDavid Robillard <d@drobilla.net>2022-11-24 16:40:44 -0500
commit4846ad5212db89b9e72abee8da69ba87de65b113 (patch)
treec7bf8db801ca13a334ced4b8969352e77d494b3b /src/system.c
parentcff45ccd27bb024b45f11813f3026b0ee0267690 (diff)
downloadserd-4846ad5212db89b9e72abee8da69ba87de65b113.tar.gz
serd-4846ad5212db89b9e72abee8da69ba87de65b113.tar.bz2
serd-4846ad5212db89b9e72abee8da69ba87de65b113.zip
Explicitly ignore the posix_fadvise() return value
I can't figure out a sensible way to test this, and even if it did fail, at most a warning message could be printed because this is just a performance hint anyway.
Diffstat (limited to 'src/system.c')
-rw-r--r--src/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system.c b/src/system.c
index 2058cfe2..072d2ed5 100644
--- a/src/system.c
+++ b/src/system.c
@@ -30,7 +30,7 @@ serd_fopen(const char* const path, const char* const mode)
}
#if USE_POSIX_FADVISE && USE_FILENO
- posix_fadvise(fileno(fd), 0, 0, POSIX_FADV_SEQUENTIAL);
+ (void)posix_fadvise(fileno(fd), 0, 0, POSIX_FADV_SEQUENTIAL);
#endif
return fd;
}