Commit 3c3926c
committed
Fix unused variable warning when JIT and SYSTEM are enabled
When building with make 'ENABLE_JIT=1 ENABLE_SYSTEM=1', the following
error is observed:
src/emulate.c:45:13: error: ‘need_clear_block_map’ defined but not used [-Werror=unused-variable]
45 | static bool need_clear_block_map = false;
| ^~~~~~~~~~~~~~~~~~~~
Fix this by guarding the 'need_clear_block_map' definition with the
RV32_HAS(SYSTEM) and !RV32_HAS(JIT) macros. This ensures the variable
is only defined when the macros indicate it is needed.1 parent 8279166 commit 3c3926c
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
0 commit comments