From c9ad454807bb7a6528dceb7820b5954b5a4f6e95 Mon Sep 17 00:00:00 2001 From: dongjiuzhu1 Date: Mon, 3 Jun 2024 20:00:48 +0800 Subject: [PATCH] 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 --- 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 (; ; )