]> arthur.barton.de Git - netdata.git/blobdiff - src/common.c
Fix misc compiler warnings on FreeBSD
[netdata.git] / src / common.c
index 72412baae286abb540b85fa44bf7543151a4b39b..88fcf85bc2a981ec35270db4f7281118d46052fc 100644 (file)
@@ -914,6 +914,9 @@ char *trim(char *s) {
 }
 
 void *mymmap(const char *filename, size_t size, int flags, int ksm) {
+#ifndef MADV_MERGEABLE
+    (void)ksm;
+#endif
     static int log_madvise_1 = 1;
 #ifdef MADV_MERGEABLE
     static int log_madvise_2 = 1, log_madvise_3 = 1;