You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/09/24 15:10:37 UTC

(nuttx) branch master updated: libc/pathbuffer: fix build warning on tasking

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new f44a9c44a7 libc/pathbuffer: fix build warning on tasking
f44a9c44a7 is described below

commit f44a9c44a72b2661d5f427cf0a67d8093b1aba2a
Author: chao an <an...@lixiang.com>
AuthorDate: Tue Sep 24 20:04:10 2024 +0800

    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 <an...@lixiang.com>
---
 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 4beac475a5..3bc299b496 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
 }