projects
/
adu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc858ad
)
format.c: Remove an unused variable.
author
Andre Noll
<maan@systemlinux.org>
Mon, 25 Jun 2012 19:07:22 +0000
(21:07 +0200)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/format.c
b/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 {
- char unit;
align = af->nf.align;
- unit = af->nf.unit;
val = align_unsigned_int(values[idx].num_value,
fi->width, &af->nf, type);
}