mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Fix unused variable warning for no-literal-pool targets
* lightening/lightening.c (jit_patch_there): Conditionally define flags.
This commit is contained in:
parent
6e317e70dd
commit
2c0fdb045e
1 changed files with 2 additions and 0 deletions
|
@ -380,7 +380,9 @@ jit_patch_there(jit_state_t* _jit, jit_reloc_t reloc, jit_pointer_t addr)
|
|||
ptrdiff_t diff = (uint8_t*)addr - pc_base;
|
||||
ASSERT((diff & ((1 << reloc.rsh) - 1)) == 0);
|
||||
diff >>= reloc.rsh;
|
||||
#ifdef JIT_NEEDS_LITERAL_POOL
|
||||
int flags = reloc.kind & ~JIT_RELOC_MASK;
|
||||
#endif
|
||||
|
||||
switch (reloc.kind & JIT_RELOC_MASK)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue