py: In compiler, put macro guard around potentially unused asm vars.
diff --git a/py/compile.c b/py/compile.c
index d688bf4..38f4eb1 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -84,8 +84,10 @@
emit_t *emit; // current emitter
const emit_method_table_t *emit_method_table; // current emit method table
+ #if MICROPY_EMIT_INLINE_THUMB
emit_inline_asm_t *emit_inline_asm; // current emitter for inline asm
const emit_inline_asm_method_table_t *emit_inline_asm_method_table; // current emit method table for inline asm
+ #endif
} compiler_t;
STATIC void compile_syntax_error(compiler_t *comp, mp_parse_node_t pn, const char *msg) {
@@ -3621,8 +3623,10 @@
// compile pass 1
comp->emit = emit_pass1_new();
comp->emit_method_table = &emit_pass1_method_table;
+ #if MICROPY_EMIT_INLINE_THUMB
comp->emit_inline_asm = NULL;
comp->emit_inline_asm_method_table = NULL;
+ #endif
uint max_num_labels = 0;
for (scope_t *s = comp->scope_head; s != NULL && comp->compile_error == MP_OBJ_NULL; s = s->next) {
if (false) {