diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-05-13 20:57:01 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-05-13 20:57:01 +0200 |
commit | 60a9414cad23b6e8cc6b13e37675826ed05f7709 (patch) | |
tree | 38b193f0468dd57728fe991e9eaed8abf088deeb /libbb | |
parent | 8dd29da2c667b6c9ae7381096320b9e31d3a50e2 (diff) | |
download | busybox-w32-60a9414cad23b6e8cc6b13e37675826ed05f7709.tar.gz busybox-w32-60a9414cad23b6e8cc6b13e37675826ed05f7709.tar.bz2 busybox-w32-60a9414cad23b6e8cc6b13e37675826ed05f7709.zip |
fix "variable 'foo' set but not used" warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/dump.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libbb/dump.c b/libbb/dump.c index 1b1d03a66..919fe135c 100644 --- a/libbb/dump.c +++ b/libbb/dump.c | |||
@@ -99,7 +99,7 @@ static NOINLINE int bb_dump_size(FS *fs) | |||
99 | static NOINLINE void rewrite(priv_dumper_t *dumper, FS *fs) | 99 | static NOINLINE void rewrite(priv_dumper_t *dumper, FS *fs) |
100 | { | 100 | { |
101 | enum { NOTOKAY, USEBCNT, USEPREC } sokay; | 101 | enum { NOTOKAY, USEBCNT, USEPREC } sokay; |
102 | PR *pr, **nextpr = NULL; | 102 | PR *pr; |
103 | FU *fu; | 103 | FU *fu; |
104 | char *p1, *p2, *p3; | 104 | char *p1, *p2, *p3; |
105 | char savech, *fmtp; | 105 | char savech, *fmtp; |
@@ -111,15 +111,12 @@ static NOINLINE void rewrite(priv_dumper_t *dumper, FS *fs) | |||
111 | * break each format unit into print units; each | 111 | * break each format unit into print units; each |
112 | * conversion character gets its own. | 112 | * conversion character gets its own. |
113 | */ | 113 | */ |
114 | for (nconv = 0, fmtp = fu->fmt; *fmtp; nextpr = &pr->nextpr) { | 114 | for (nconv = 0, fmtp = fu->fmt; *fmtp; ) { |
115 | /* NOSTRICT */ | 115 | /* NOSTRICT */ |
116 | /* DBU:[dvae@cray.com] zalloc so that forward ptrs start out NULL*/ | 116 | /* DBU:[dvae@cray.com] zalloc so that forward ptrs start out NULL*/ |
117 | pr = xzalloc(sizeof(PR)); | 117 | pr = xzalloc(sizeof(PR)); |
118 | if (!fu->nextpr) | 118 | if (!fu->nextpr) |
119 | fu->nextpr = pr; | 119 | fu->nextpr = pr; |
120 | /* ignore nextpr -- its unused inside the loop and is | ||
121 | * uninitialized 1st time through. | ||
122 | */ | ||
123 | 120 | ||
124 | /* skip preceding text and up to the next % sign */ | 121 | /* skip preceding text and up to the next % sign */ |
125 | for (p1 = fmtp; *p1 && *p1 != '%'; ++p1) | 122 | for (p1 = fmtp; *p1 && *p1 != '%'; ++p1) |