ref: bbe432bb785e1c3085e17402480a86cd6759820c
parent: 7194b269261dae309e23a8c1639d35d536fea361
author: Ori Bernstein <[email protected]>
date: Thu Jun 21 18:30:16 EDT 2012
Fix compilation warning. Newer GCCs don't like set-but-not-read dead vars. Fixed.
--- a/8/reduce.c
+++ b/8/reduce.c
@@ -565,7 +565,6 @@
{
Node *r; /* expression result */
Node *t, *u, *v; /* temporary nodes */
- Type *ty;
Node **args;
size_t i;
const Op fusedmap[] = {
@@ -704,7 +703,6 @@
case Ocall:
if (exprtype(n)->type != Tyvoid && size(n) > 4) {
r = temp(s, n);
- ty = mktyptr(n->line, exprtype(r));
linsert(&n->expr.args, &n->expr.nargs, 1, addr(r, exprtype(n)));
for (i = 0; i < n->expr.nargs; i++)
n->expr.args[i] = rval(s, n->expr.args[i]);