Skip to content

Commit

Permalink
libc/pathbuffer: fix build warning on tasking
Browse files Browse the repository at this point in the history
[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 <[email protected]>
  • Loading branch information
anchao authored and xiaoxiang781216 committed Sep 24, 2024
1 parent 6a825f1 commit f44a9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/libc/misc/lib_pathbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit f44a9c4

Please sign in to comment.