Commit 51092f1
committed
Fix compiler error when MOP_FUSION is disabled
When using 'make ENABLE_MOP_FUSION=0', the following error is observed:
src/emulate.c:714:13: error: ‘match_pattern’ defined but not used [-Werror=unused-function]
714 | static void match_pattern(riscv_t *rv, block_t *block)
| ^~~~~~~~~~~~~
Fix this by guarding the match_pattern function definition with
RV32_HAS(MOP_FUSION) macro. This ensures the function is only defined
when the MOP_FUSION is enabled.1 parent c24f6d9 commit 51092f1
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| 708 | + | |
708 | 709 | | |
709 | 710 | | |
710 | 711 | | |
| |||
802 | 803 | | |
803 | 804 | | |
804 | 805 | | |
| 806 | + | |
805 | 807 | | |
806 | 808 | | |
807 | 809 | | |
| |||
0 commit comments