]> git.kaiwu.me - klib.git/commitdiff
killed a warning
authorHeng Li <lh3@live.co.uk>
Mon, 25 Jul 2011 05:31:19 +0000 (01:31 -0400)
committerHeng Li <lh3@live.co.uk>
Mon, 25 Jul 2011 05:31:19 +0000 (01:31 -0400)
kstring.c

index c3d62c2b94d40507fb1fd3e8442d111cd6309ef3..84c28ee1f4fe773fce1b193d575c727624b0af63 100644 (file)
--- a/kstring.c
+++ b/kstring.c
@@ -325,7 +325,7 @@ int ksprintf_fast(kstring_t *s, const char *fmt, ...)
                                        s->s[s->l++] = '0';
                                } else { // other cases
                                        double f, base, p10;
-                                       int type = *p, e, w, tmp;
+                                       int type = *p, e, tmp;
                                        uint64_t y;
                                        if (z.f < 0) z.f = 6; // default precision
                                        if (z.f > 20) z.f = 20; // maximum precision. 1<<63 ~ 1e20