mirror of
https://github.com/apache/nuttx.git
synced 2026-10-05 13:17:49 +00:00
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:
parent
77f68b121b
commit
2d536059f0
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue