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

commit c9ad454807bb7a6528dceb7820b5954b5a4f6e95
Author: dongjiuzhu1 <[email protected]>
AuthorDate: Mon Jun 3 20:00:48 2024 +0800

    libs/stdio: fix compile warning when disable CONFIG_LIBC_NUMBERED_ARGS
    
    libs/libc/stdio/lib_libvsprintf.c:160:48: warning: unused parameter 
'arglist' [-Wunused-parameter]
                                 FAR struct arg_s *arglist, int numargs,
                                                   ^
    libs/libc/stdio/lib_libvsprintf.c:160:61: warning: unused parameter 
'numargs' [-Wunused-parameter]
                                 FAR struct arg_s *arglist, int numargs,
    
    Signed-off-by: dongjiuzhu1 <[email protected]>
---
 libs/libc/stdio/lib_libvsprintf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libs/libc/stdio/lib_libvsprintf.c 
b/libs/libc/stdio/lib_libvsprintf.c
index 039ec56acd..fef65a2535 100644
--- a/libs/libc/stdio/lib_libvsprintf.c
+++ b/libs/libc/stdio/lib_libvsprintf.c
@@ -187,6 +187,9 @@ static int vsprintf_internal(FAR struct lib_outstream_s 
*stream,
 
 #ifdef CONFIG_LIBC_NUMBERED_ARGS
   int argnumber = 0;
+#else
+  UNUSED(arglist);
+  UNUSED(numargs);
 #endif
 
   for (; ; )

Reply via email to