From 2fbdc259c1d15d1b4f3f5f85cfae07d3bb842fe9 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 25 Jun 2012 21:07:22 +0200 Subject: [PATCH] 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. --- format.c | 2 -- 1 file changed, 2 deletions(-) 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); } -- 2.39.5