Commit 6a0de8a6 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Fix warnings about shadowed variables.

parent f606616b
......@@ -102,8 +102,8 @@ static inline size_t be_emit_get_column(void)
be_emit_char('\t'); \
if (in_delay_slot) \
be_emit_char(' '); \
for (size_t n;;) \
if (n = strcspn(fmt, "\n%"), be_emit_string_len(fmt, n), fmt += n, *fmt == '\0') { \
for (size_t node##__n;;) \
if (node##__n = strcspn(fmt, "\n%"), be_emit_string_len(fmt, node##__n), fmt += node##__n, *fmt == '\0') { \
be_emit_finish_line_gas(node); \
va_end(ap); \
break; \
......
......@@ -586,7 +586,7 @@ void sparc_emitf(ir_node const *const node, char const *fmt, ...)
}
break;
case 'O':
case 'O': {
if (!is_digit(*fmt))
goto unknown;
unsigned const pos = *fmt++ - '0';
......@@ -597,6 +597,7 @@ void sparc_emitf(ir_node const *const node, char const *fmt, ...)
if (!plus)
be_emit_char(']');
break;
}
case 'R': {
arch_register_t const *const reg = va_arg(ap, const arch_register_t*);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment