Skip to content

Commit f44a9c4

Browse files
anchaoxiaoxiang781216
authored andcommitted
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 <anchao@lixiang.com>
1 parent 6a825f1 commit f44a9c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/libc/misc/lib_pathbuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,6 @@ void lib_put_pathbuffer(FAR char *buffer)
141141
/* Free the buffer if it was dynamically allocated */
142142

143143
#ifdef CONFIG_LIBC_PATHBUFFER_MALLOC
144-
return lib_free(buffer);
144+
lib_free(buffer);
145145
#endif
146146
}

0 commit comments

Comments
 (0)