diff --git a/libs/libc/stdio/lib_libvsprintf.c b/libs/libc/stdio/lib_libvsprintf.c index 7d344271a3..7d449cb352 100644 --- a/libs/libc/stdio/lib_libvsprintf.c +++ b/libs/libc/stdio/lib_libvsprintf.c @@ -937,7 +937,9 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream, #else /* !CONFIG_LIBC_FLOATINGPOINT */ if ((c >= 'E' && c <= 'G') || (c >= 'e' && c <= 'g')) { +# ifndef CONFIG_LIBC_NUMBERED_ARGS va_arg(ap, double); +# endif pnt = "*float*"; size = sizeof("*float*") - 1; goto str_lpad;