summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-11-18 22:18:09 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-11-18 22:18:09 -0800
commit682221438e242486b4672cb7bf3297418f836dcd (patch)
treeae757e58c5999af2bd5747c74c331648500b68dc /parser.c
parenta30cc07224154c101c1275c148bf60d3acd43015 (diff)
downloadnasm-682221438e242486b4672cb7bf3297418f836dcd.tar.gz
Clean up remaining build warnings
Clean up remaining build warnings. None of this should affect code operations. The only warnings which were actually relevant might have been the ones in ldrdf.c, but it's not clear if anyone ever uses that.
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/parser.c b/parser.c
index 8011733c..bd9d3801 100644
--- a/parser.c
+++ b/parser.c
@@ -802,6 +802,7 @@ restart_parse:
}
}
} else { /* it's a register */
+ unsigned int rs;
if (value->type >= EXPR_SIMPLE || value->value != 1) {
error(ERR_NONFATAL, "invalid operand type");
@@ -825,16 +826,16 @@ restart_parse:
* we want to produce a warning iff the specified size
* is different from the register size
*/
- i = result->oprs[operand].type & SIZE_MASK;
+ rs = result->oprs[operand].type & SIZE_MASK;
} else
- i = 0;
+ rs = 0;
result->oprs[operand].type &= TO;
result->oprs[operand].type |= REGISTER;
result->oprs[operand].type |= reg_flags[value->type];
result->oprs[operand].basereg = value->type;
- if (i && (result->oprs[operand].type & SIZE_MASK) != i)
+ if (rs && (result->oprs[operand].type & SIZE_MASK) != rs)
error(ERR_WARNING | ERR_PASS1,
"register size specification ignored");
}