1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 20:00:19 +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:
Andy Wingo 2020-06-19 16:30:12 +02:00
parent 6e317e70dd
commit 2c0fdb045e

View file

@ -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)
{