Skip to content

Commit

Permalink
com32/lib/syslinux/shuffle.c: remove variables set but not used
Browse files Browse the repository at this point in the history
gcc 4.6 warns on variables set but not used, so remove them.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
H. Peter Anvin committed Mar 16, 2011
1 parent b453fc8 commit 2f9f44c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions com32/lib/syslinux/shuffle.c
Expand Up @@ -93,7 +93,7 @@ int syslinux_do_shuffle(struct syslinux_movelist *fraglist,
int np;
int desc_blocks, need_blocks;
int need_ptrs;
addr_t desczone, descfree, descaddr, descoffs;
addr_t desczone, descfree, descaddr;
int nmoves, nzero;
com32sys_t ireg;

Expand Down Expand Up @@ -182,11 +182,13 @@ int syslinux_do_shuffle(struct syslinux_movelist *fraglist,
if (!dbuf)
goto bail;

descoffs = descaddr - (addr_t) dbuf;

#if DEBUG
dprintf("nmoves = %d, nzero = %d, dbuf = %p, offs = 0x%08x\n",
nmoves, nzero, dbuf, descoffs);
{
addr_t descoffs = descaddr - (addr_t) dbuf;

dprintf("nmoves = %d, nzero = %d, dbuf = %p, offs = 0x%08x\n",
nmoves, nzero, dbuf, descoffs);
}
#endif

/* Copy the move sequence into the descriptor buffer */
Expand Down

0 comments on commit 2f9f44c

Please sign in to comment.