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 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2024-06-03 20:00:48 +08:00 committed by Xiang Xiao
parent 319501e9ef
commit c9ad454807
1 changed files with 3 additions and 0 deletions

View File

@ -187,6 +187,9 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream,
#ifdef CONFIG_LIBC_NUMBERED_ARGS #ifdef CONFIG_LIBC_NUMBERED_ARGS
int argnumber = 0; int argnumber = 0;
#else
UNUSED(arglist);
UNUSED(numargs);
#endif #endif
for (; ; ) for (; ; )