summaryrefslogtreecommitdiff
path: root/com32/lib/syslinux/shuffle.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-03-16 13:10:36 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-03-16 13:10:36 -0700
commit2f9f44c6bb0a26077930e104cd6c40b84f920a5e (patch)
treeb40d9d81808ff3ecc013a371b14a9d92acd2ca36 /com32/lib/syslinux/shuffle.c
parentb453fc83d17ea0d3c47cc921a042b50381ba2bcb (diff)
downloadsyslinux-2f9f44c6bb0a26077930e104cd6c40b84f920a5e.tar.gz
com32/lib/syslinux/shuffle.c: remove variables set but not used
gcc 4.6 warns on variables set but not used, so remove them. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/syslinux/shuffle.c')
-rw-r--r--com32/lib/syslinux/shuffle.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/com32/lib/syslinux/shuffle.c b/com32/lib/syslinux/shuffle.c
index 6b5a601f..54a7e651 100644
--- a/com32/lib/syslinux/shuffle.c
+++ b/com32/lib/syslinux/shuffle.c
@@ -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;
@@ -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 */