mirror of
https://github.com/AltraMayor/f3.git
synced 2025-08-03 18:46:00 -04:00
Address unused-parameter warning on Macs
Function posix_fadvise(), only implemented on Macs, was issuing warnings because the code doesn't use parameters 'offset' and 'len'.
This commit is contained in:
parent
e8509a05e9
commit
f8050f4721
2
utils.c
2
utils.c
@ -238,6 +238,8 @@ static inline int fdatasync(int fd)
|
||||
/* This function is a _rough_ approximation of posix_fadvise(2). */
|
||||
int posix_fadvise(int fd, off_t offset, off_t len, int advice)
|
||||
{
|
||||
UNUSED(offset);
|
||||
UNUSED(len);
|
||||
switch (advice) {
|
||||
case POSIX_FADV_SEQUENTIAL:
|
||||
return fcntl(fd, F_RDAHEAD, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user