Commit 0d7e4d7
committed
Fix undeclared identifier 'attr' error
Building with 'ENABLE_JIT=1, ENABLE_SYSTEM=1, and ENABLE_ELF_LOADER=0'
causes the following errors:
src/riscv.c:582:18: error: use of undeclared identifier 'attr'
582 | u8250_delete(attr->uart);
| ^
src/riscv.c:583:17: error: use of undeclared identifier 'attr'
583 | plic_delete(attr->plic);
| ^
These errors occur because attr is not defined under these conditions.
Fix this by adjusting the guard for attr to
(RV32_HAS(SYSTEM) && !RV32_HAS(ELF_LOADER)), ensuring it is defined as
needed.1 parent 3c3926c commit 0d7e4d7
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
| 624 | + | |
625 | 625 | | |
| 626 | + | |
| 627 | + | |
626 | 628 | | |
627 | 629 | | |
628 | 630 | | |
| |||
0 commit comments