Skip to content

Commit 2d53605

Browse files
anchaoxiaoxiang781216
authored andcommitted
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>
1 parent 77f68b1 commit 2d53605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/mempool/mempool_multiple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static void mempool_multiple_free_callback(FAR struct mempool_s *pool,
177177
{
178178
FAR struct mempool_multiple_s *mpool = pool->priv;
179179

180-
return mpool->free(mpool->arg, (FAR char *)addr - mpool->minpoolsize);
180+
mpool->free(mpool->arg, (FAR char *)addr - mpool->minpoolsize);
181181
}
182182

183183
/****************************************************************************

0 commit comments

Comments
 (0)