X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcompat%2Fmman.c;h=1cc1c44c8380f571284cc6e3948b1c8f72fce2e2;hb=ecd7492f21a492b70569d5ecc1d3a808241b63f0;hp=e8eea8768c540dfc40ae353e5db43fcfa1c52728;hpb=dd420a9b3f83cda6f77e8813165a061856d9d618;p=babeltrace.git diff --git a/src/compat/mman.c b/src/compat/mman.c index e8eea876..1cc1c44c 100644 --- a/src/compat/mman.c +++ b/src/compat/mman.c @@ -152,8 +152,8 @@ DWORD map_prot_flags(int prot, DWORD *dwDesiredAccess) return 0; } -void *bt_mmap(void *addr, size_t length, int prot, int flags, int fd, - off_t offset, int log_level) +void *bt_mmap(void *addr __attribute__((unused)), size_t length, int prot, + int flags, int fd, off_t offset, int log_level) { struct mmap_mapping *mapping = NULL; void *mapping_addr; @@ -252,7 +252,7 @@ error: return MAP_FAILED; } -int bt_munmap(void *addr, size_t length) +int bt_munmap(void *addr, size_t length __attribute__((unused))) { int ret = 0; struct mmap_mapping *mapping = addr;