[syslinux:master] com32/lib/syslinux/shuffle.c: remove variables set but not used
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Wed Mar 16 13:18:46 PDT 2011
Commit-ID: 2f9f44c6bb0a26077930e104cd6c40b84f920a5e
Gitweb: http://syslinux.zytor.com/commit/2f9f44c6bb0a26077930e104cd6c40b84f920a5e
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 16 Mar 2011 13:10:36 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 16 Mar 2011 13:10:36 -0700
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 at zytor.com>
---
com32/lib/syslinux/shuffle.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/com32/lib/syslinux/shuffle.c b/com32/lib/syslinux/shuffle.c
index 6b5a601..54a7e65 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 */
More information about the Syslinux-commits
mailing list