aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xChangeLog5
-rw-r--r--builtin.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ea1badb6..fb96f1ff 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/builtin.c b/builtin.c
index de8e3f76..e936b5a9 100644
--- a/builtin.c
+++ b/builtin.c
@@ -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)