Commit 9a50733
committed
Fix Clang error when disabling MOP FUSION
When using 'make ENABLE_MOP_FUSION=0 CC=clang', the following error is
observed:
src/emulate.c:695:20: error: unused function 'remove_next_nth_ir' [-Werror,-Wunused-function]
695 | static inline void remove_next_nth_ir(const riscv_t *rv,
| ^~~~~~~~~~~~~~~~~~
1 error generated.
Fix this by guarding the remove_next_nth_ir function definition with
RV32_HAS(MOP_FUSION) macro. This ensures the function is only defined
when the MOP_FUSION is enabled.1 parent 5580bb2 commit 9a50733
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| 695 | + | |
695 | 696 | | |
696 | 697 | | |
697 | 698 | | |
| |||
706 | 707 | | |
707 | 708 | | |
708 | 709 | | |
| 710 | + | |
709 | 711 | | |
710 | 712 | | |
711 | 713 | | |
| |||
0 commit comments