aboutsummaryrefslogtreecommitdiff
path: root/tccasm.c
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@celest.fr>2011-05-16 14:15:32 +0200
committerThomas Preud'homme <thomas.preudhomme@celest.fr>2011-05-16 14:15:32 +0200
commitee06ef9dd394f26b11fef078f07c635a02fd95d6 (patch)
treeff9839a42156909393bd121ade708221358377e7 /tccasm.c
parentdb9d5f0fa4dc65bbf869ee4f98f53eafbab6059f (diff)
downloadtinycc-ee06ef9dd394f26b11fef078f07c635a02fd95d6.tar.gz
tinycc-ee06ef9dd394f26b11fef078f07c635a02fd95d6.tar.bz2
Remove unused variables
Remove unused local variables and declare them conditionally when they are used only on some architectures.
Diffstat (limited to 'tccasm.c')
-rw-r--r--tccasm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tccasm.c b/tccasm.c
index 263b0f5..36a5720 100644
--- a/tccasm.c
+++ b/tccasm.c
@@ -991,7 +991,7 @@ ST_FUNC void asm_instr(void)
{
CString astr, astr1;
ASMOperand operands[MAX_ASM_OPERANDS];
- int nb_inputs, nb_outputs, nb_operands, i, must_subst, out_reg;
+ int nb_outputs, nb_operands, i, must_subst, out_reg;
uint8_t clobber_regs[NB_ASM_REGS];
next();
@@ -1040,7 +1040,6 @@ ST_FUNC void asm_instr(void)
token after the assembler parsing */
if (tok != ';')
expect("';'");
- nb_inputs = nb_operands - nb_outputs;
/* save all values in the memory */
save_regs(0);