diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-11-18 22:18:09 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-11-18 22:18:09 -0800 |
commit | 682221438e242486b4672cb7bf3297418f836dcd (patch) | |
tree | ae757e58c5999af2bd5747c74c331648500b68dc /parser.c | |
parent | a30cc07224154c101c1275c148bf60d3acd43015 (diff) | |
download | nasm-682221438e242486b4672cb7bf3297418f836dcd.tar.gz nasm-682221438e242486b4672cb7bf3297418f836dcd.tar.bz2 nasm-682221438e242486b4672cb7bf3297418f836dcd.zip |
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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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"); } |