summaryrefslogtreecommitdiff
path: root/py/emitglue.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/emitglue.c')
-rw-r--r--py/emitglue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/emitglue.c b/py/emitglue.c
index a7fff0e0e..f75a57437 100644
--- a/py/emitglue.c
+++ b/py/emitglue.c
@@ -76,6 +76,9 @@ void mp_emit_glue_assign_bytecode(mp_raw_code_t *rc, const byte *code,
#endif
#ifdef DEBUG_PRINT
+ #if !MICROPY_DEBUG_PRINTERS
+ const size_t len = 0;
+ #endif
DEBUG_printf("assign byte code: code=%p len=" UINT_FMT " flags=%x\n", code, len, (uint)scope_flags);
#endif
#if MICROPY_DEBUG_PRINTERS