From f44a9c44a72b2661d5f427cf0a67d8093b1aba2a Mon Sep 17 00:00:00 2001 From: chao an Date: Tue, 24 Sep 2024 20:04:10 +0800 Subject: [PATCH] libc/pathbuffer: fix build warning on tasking [263/1096] Building C object libs/libc/CMakeFiles/c.dir/misc/lib_pathbuffer.c.obj ctc W574: ["libs/libc/misc/lib_pathbuffer.c" 144/3] 'return' with an expression in function returning void Signed-off-by: chao an --- libs/libc/misc/lib_pathbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/misc/lib_pathbuffer.c b/libs/libc/misc/lib_pathbuffer.c index 4beac475a56..3bc299b496c 100644 --- a/libs/libc/misc/lib_pathbuffer.c +++ b/libs/libc/misc/lib_pathbuffer.c @@ -141,6 +141,6 @@ void lib_put_pathbuffer(FAR char *buffer) /* Free the buffer if it was dynamically allocated */ #ifdef CONFIG_LIBC_PATHBUFFER_MALLOC - return lib_free(buffer); + lib_free(buffer); #endif }