mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
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:
@@ -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 (; ; )
|
||||
|
||||
Reference in New Issue
Block a user