fs/mmap/fs_munmap.c: Fix 'warning: variable 'newaddr' set but not used'

This commit is contained in:
Xiang Xiao 2019-11-27 07:50:19 -06:00 committed by Gregory Nutt
parent 01cda09aba
commit b7b85251cf
1 changed files with 1 additions and 0 deletions

View File

@ -198,6 +198,7 @@ int munmap(FAR void *start, size_t length)
{ {
newaddr = kumm_realloc(curr->addr, sizeof(struct fs_rammap_s) + length); newaddr = kumm_realloc(curr->addr, sizeof(struct fs_rammap_s) + length);
DEBUGASSERT(newaddr == (FAR void *)(curr->addr)); DEBUGASSERT(newaddr == (FAR void *)(curr->addr));
UNUSED(newaddr); /* May not be used */
curr->length = length; curr->length = length;
} }