diff options
author | Vladimir Kobal <vlad@prokk.net> | 2022-05-14 17:45:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-14 17:45:06 +0300 |
commit | 8720c4ceb32e6ee7708dad68bf006ba556bb469e (patch) | |
tree | f99019e5e63a2f238099027e69ae7734325e821f /libnetdata | |
parent | 779f505cbd7a5aa8fc3dd4bfc992684c89631cd2 (diff) |
Fix compilation warnings in FreeBSD (#12887)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/libnetdata.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libnetdata/libnetdata.c b/libnetdata/libnetdata.c index 4c38a3a5e7..69e1d1cf78 100644 --- a/libnetdata/libnetdata.c +++ b/libnetdata/libnetdata.c @@ -982,6 +982,9 @@ static inline int madvise_mergeable(void *mem, size_t len) { if (ret != 0 && logger-- > 0) error("madvise(MADV_MERGEABLE) failed."); return ret; #else + UNUSED(mem); + UNUSED(len); + return 0; #endif } |