From b7b85251cf8625a4bc54f174ef5768c51e9c0005 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 27 Nov 2019 07:50:19 -0600 Subject: [PATCH] fs/mmap/fs_munmap.c: Fix 'warning: variable 'newaddr' set but not used' --- fs/mmap/fs_munmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/mmap/fs_munmap.c b/fs/mmap/fs_munmap.c index a4fa9b24c9..0ff1db4d64 100644 --- a/fs/mmap/fs_munmap.c +++ b/fs/mmap/fs_munmap.c @@ -198,6 +198,7 @@ int munmap(FAR void *start, size_t length) { newaddr = kumm_realloc(curr->addr, sizeof(struct fs_rammap_s) + length); DEBUGASSERT(newaddr == (FAR void *)(curr->addr)); + UNUSED(newaddr); /* May not be used */ curr->length = length; }