mm/mempool: fix visual studio Compiler Warning C4098

D:\archer\code\nuttx\mm\mempool\mempool_multiple.c(180,72): warning C4098: "mempool_multiple_free_callback":"void" void function returning a value

Compiler Warning C4098:
A function declared with return type void has a return statement that returns a value. The compiler assumes the function returns a value of type int.

Reference:
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4098?view=msvc-170

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-02-08 17:06:59 +08:00 committed by Xiang Xiao
parent 77f68b121b
commit 2d536059f0
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ static void mempool_multiple_free_callback(FAR struct mempool_s *pool,
{
FAR struct mempool_multiple_s *mpool = pool->priv;
return mpool->free(mpool->arg, (FAR char *)addr - mpool->minpoolsize);
mpool->free(mpool->arg, (FAR char *)addr - mpool->minpoolsize);
}
/****************************************************************************