]> git.tuebingen.mpg.de Git - adu.git/commitdiff
format.c: Remove an unused variable.
authorAndre Noll <maan@systemlinux.org>
Mon, 25 Jun 2012 19:07:22 +0000 (21:07 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 25 Jun 2012 19:07:22 +0000 (21:07 +0200)
In format_items(), "unit" is set but unused. gcc is right to complain
here. This variable is pointless and can go away.

format.c

index e8a9a28617656700fda8352ec82bd1fb2517e144..736cb7c327e94647b79a08383c176b0644f20d30 100644 (file)
--- a/format.c
+++ b/format.c
@@ -449,9 +449,7 @@ char *format_items(struct format_info *info, union atom_value *values)
                        align = af->sf.align;
                        val = align_string(values[idx].string_value, fi->width, align);
                } else {
                        align = af->sf.align;
                        val = align_string(values[idx].string_value, fi->width, align);
                } else {
-                       char unit;
                        align = af->nf.align;
                        align = af->nf.align;
-                       unit = af->nf.unit;
                        val = align_unsigned_int(values[idx].num_value,
                                fi->width, &af->nf, type);
                }
                        val = align_unsigned_int(values[idx].num_value,
                                fi->width, &af->nf, type);
                }