diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-01 07:32:35 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-01 07:32:35 +0000 |
commit | ff68307fb48ebed764757b9f0ff301df2f3d8825 (patch) | |
tree | f9d9eb1c19ab77a5348df2e640c1b602cb995aad /lib/libc/stdio/xprintf_float.c | |
parent | 194e32cbb7f3822a9951dce328c2033e9808f264 (diff) | |
download | FreeBSD-src-ff68307fb48ebed764757b9f0ff301df2f3d8825.zip FreeBSD-src-ff68307fb48ebed764757b9f0ff301df2f3d8825.tar.gz |
MFC r278932:
r278932 (by pfg):
libc: clean some set-but-not-used errors.
These were found by gcc 5.0 on Dragonfly BSD, however I
made no attempt to silence the false positives.
Obtained from: DragonFly (cf515c3a6f3a8964ad592e524442bc628f8ed63b)
Diffstat (limited to 'lib/libc/stdio/xprintf_float.c')
-rw-r--r-- | lib/libc/stdio/xprintf_float.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libc/stdio/xprintf_float.c b/lib/libc/stdio/xprintf_float.c index b719aac..ad17eb2 100644 --- a/lib/libc/stdio/xprintf_float.c +++ b/lib/libc/stdio/xprintf_float.c @@ -168,7 +168,6 @@ __printf_render_float(struct __printf_io *io, const struct printf_info *pi, cons int realsz; /* field size expanded by dprec, sign, etc */ int dprec; /* a copy of prec if [diouxX], 0 otherwise */ char ox[2]; /* space for 0x; ox[1] is either x, X, or \0 */ - int prsize; /* max size of printed field */ int ret; /* return value accumulator */ char *decimal_point; /* locale specific decimal point */ int n2; /* XXX: for PRINTANDPAD */ @@ -344,8 +343,6 @@ here: if (ox[1]) realsz += 2; - prsize = pi->width > realsz ? pi->width : realsz; - /* right-adjusting blank padding */ if (pi->pad != '0' && pi->left == 0) ret += __printf_pad(io, pi->width - realsz, 0); |