tools/mpy_ld.py: Pre-declare some local variables to appease linter.
Spurious fix as the logic is structured such that these variables will be set before dereferenced, but this keeps Ruff happy (no more F821 undefined-name). Signed-off-by: Angus Gratton <angus@redyak.com.au>
This commit is contained in:
parent
974f99482c
commit
b8189d039d
@ -966,6 +966,9 @@ def build_mpy(env, entry_offset, fmpy, native_qstr_vals, native_qstr_objs):
|
|||||||
|
|
||||||
# MPY: relocation information
|
# MPY: relocation information
|
||||||
prev_kind = None
|
prev_kind = None
|
||||||
|
prev_base = None
|
||||||
|
prev_offset = None
|
||||||
|
prev_n = None
|
||||||
for base, addr, kind in env.mpy_relocs:
|
for base, addr, kind in env.mpy_relocs:
|
||||||
if isinstance(kind, str) and kind.startswith(".text"):
|
if isinstance(kind, str) and kind.startswith(".text"):
|
||||||
kind = 0
|
kind = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user