* lib/vasnprintf.c (VASNPRINTF): Rename local variable 'i' to 'di'.
+2025-04-26 Bruno Haible <bruno@clisp.org>
+
+ vasnprintf: Fix -Wshadow=local warnings.
+ * lib/vasnprintf.c (VASNPRINTF): Rename local variable 'i' to 'di'.
+
2025-04-26 Bruno Haible <bruno@clisp.org>
Silence gcc 15 -Wunterminated-string-initialization warnings.
TCHAR_T *buf;
TCHAR_T *buf_malloced;
const FCHAR_T *cp;
- size_t i;
+ size_t di;
DIRECTIVE *dp;
/* Output string accumulator. */
DCHAR_T *result;
#define ENSURE_ALLOCATION(needed) \
ENSURE_ALLOCATION_ELSE((needed), goto out_of_memory; )
- for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++)
+ for (cp = format, di = 0, dp = &d.dir[0]; ; cp = dp->dir_end, di++, dp++)
{
if (cp != dp->dir_start)
{
while (--n > 0);
}
}
- if (i == d.count)
+ if (di == d.count)
break;
/* Execute a single directive. */