diff options
-rwxr-xr-x | ChangeLog | 5 | ||||
-rw-r--r-- | builtin.c | 3 |
2 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,10 @@ 2019-01-15 Andrew J. Schorr <aschorr@telemetry-investments.com> + * builtin.c (do_match, do_intdiv): Remove unused `sub' and `lhs' + variables, since assoc_set is now doing all of the work. + +2019-01-15 Andrew J. Schorr <aschorr@telemetry-investments.com> + * awk.h (assoc_set): Move the definition lower down because it needs to be after unref is declared. * builtin.c (do_match): Use assoc_set in 3 places. @@ -2706,8 +2706,6 @@ do_match(int nargs) if ((s = SUBPATSTART(rp, t1->stptr, ii)) != -1) { size_t subpat_start; size_t subpat_len; - NODE **lhs; - NODE *sub; start = t1->stptr + s; subpat_start = s; @@ -3984,7 +3982,6 @@ do_intdiv(int nargs) { NODE *numerator, *denominator, *result; double num, denom, quotient, remainder; - NODE *sub, **lhs; result = POP_PARAM(); if (result->type != Node_var_array) |