aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example.c
diff options
authorJosh Triplett <josh@freedesktop.org>2007-05-01 11:30:58 -0700
committerJosh Triplett <josh@freedesktop.org>2007-05-01 11:30:58 -0700
commitbda7c7c515496a78ceb57d2ee07746f33e3c0c79 (patch)
treeb63c409cae82f13b5c02a060f867142b954dd74d /example.c
parentaec53c938c34c47cdbdd6824552e0f2a5104b1cb (diff)
downloadsparse-dev-bda7c7c515496a78ceb57d2ee07746f33e3c0c79.tar.gz
Fix most -Wshadow warnings in Sparse.0.3
Signed-off-by: Josh Triplett <josh@freedesktop.org>
Diffstat (limited to 'example.c')
-rw-r--r--example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example.c b/example.c
index 9d68d127..ae897dca 100644
--- a/example.c
+++ b/example.c
@@ -679,7 +679,7 @@ static struct hardreg *copy_reg(struct bb_state *state, struct hardreg *src, pse
}
for (i = 0; i < REGNO; i++) {
- struct hardreg *reg = hardregs + i;
+ reg = hardregs + i;
if (!reg->contains) {
output_comment(state, "copying %s to %s", show_pseudo(target), reg->name);
output_insn(state, "movl %s,%s", src->name, reg->name);