X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Ffcntl.h;h=9fca7f0cdc4699e8ed6155a08b6e7630d1417dfa;hb=4eac90eb7d8428fc6c5a75d3f0e795844fb6c574;hp=5e566e500ffc76967230312d297aed927b3ed14e;hpb=f3af9f34ce10b8eb2c99541b1adce9bb0ac16998;p=lttng-tools.git diff --git a/src/common/compat/fcntl.h b/src/common/compat/fcntl.h index 5e566e500..9fca7f0cd 100644 --- a/src/common/compat/fcntl.h +++ b/src/common/compat/fcntl.h @@ -37,8 +37,11 @@ extern int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes, #define SYNC_FILE_RANGE_WAIT_BEFORE 0 #define SYNC_FILE_RANGE_WRITE 0 -static inline int lttng_sync_file_range(int fd, off64_t offset, - off64_t nbytes, unsigned int flags) +static inline int lttng_sync_file_range( + int fd __attribute__((unused)), + off64_t offset __attribute__((unused)), + off64_t nbytes __attribute__((unused)), + unsigned int flags __attribute__((unused))) { return -ENOSYS; } @@ -53,8 +56,13 @@ static inline int lttng_sync_file_range(int fd, off64_t offset, #define SPLICE_F_MORE 0 #define SPLICE_F_GIFT 0 -static inline ssize_t splice(int fd_in, loff_t *off_in, int fd_out, loff_t *off_out, - size_t len, unsigned int flags) +static inline ssize_t splice( + int fd_in __attribute__((unused)), + loff_t *off_in __attribute__((unused)), + int fd_out __attribute__((unused)), + loff_t *off_out __attribute__((unused)), + size_t len __attribute__((unused)), + unsigned int flags __attribute__((unused))) { return -ENOSYS; }