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 (; ; )