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) ...@@ -102,8 +102,8 @@ static inline size_t be_emit_get_column(void)
be_emit_char('\t'); \ be_emit_char('\t'); \
if (in_delay_slot) \ if (in_delay_slot) \
be_emit_char(' '); \ be_emit_char(' '); \
for (size_t n;;) \ for (size_t node##__n;;) \
if (n = strcspn(fmt, "\n%"), be_emit_string_len(fmt, n), fmt += n, *fmt == '\0') { \ if (node##__n = strcspn(fmt, "\n%"), be_emit_string_len(fmt, node##__n), fmt += node##__n, *fmt == '\0') { \
be_emit_finish_line_gas(node); \ be_emit_finish_line_gas(node); \
va_end(ap); \ va_end(ap); \
break; \ break; \
......
...@@ -586,7 +586,7 @@ void sparc_emitf(ir_node const *const node, char const *fmt, ...) ...@@ -586,7 +586,7 @@ void sparc_emitf(ir_node const *const node, char const *fmt, ...)
} }
break; break;
case 'O': case 'O': {
if (!is_digit(*fmt)) if (!is_digit(*fmt))
goto unknown; goto unknown;
unsigned const pos = *fmt++ - '0'; unsigned const pos = *fmt++ - '0';
...@@ -597,6 +597,7 @@ void sparc_emitf(ir_node const *const node, char const *fmt, ...) ...@@ -597,6 +597,7 @@ void sparc_emitf(ir_node const *const node, char const *fmt, ...)
if (!plus) if (!plus)
be_emit_char(']'); be_emit_char(']');
break; break;
}
case 'R': { case 'R': {
arch_register_t const *const reg = va_arg(ap, const arch_register_t*); 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