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:
parent
319501e9ef
commit
c9ad454807
|
@ -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 (; ; )
|
||||||
|
|
Loading…
Reference in New Issue