From: Andre Noll Date: Mon, 25 Jun 2012 19:07:22 +0000 (+0200) Subject: format.c: Remove an unused variable. X-Git-Tag: v1.0.0~21 X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=commitdiff_plain;h=2fbdc259c1d15d1b4f3f5f85cfae07d3bb842fe9;ds=sidebyside format.c: Remove an unused variable. In format_items(), "unit" is set but unused. gcc is right to complain here. This variable is pointless and can go away. --- diff --git a/format.c b/format.c index e8a9a28..736cb7c 100644 --- 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 { - char unit; align = af->nf.align; - unit = af->nf.unit; val = align_unsigned_int(values[idx].num_value, fi->width, &af->nf, type); }