From: Tom Lane Date: Sun, 4 Nov 2018 16:20:59 +0000 (-0500) Subject: Fix unused-variable warning. X-Git-Tag: REL_12_BETA1~1309 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e0b05a75673f0ad73d5487efe814485a9fcf68f;p=postgresql Fix unused-variable warning. Discussion: https://postgr.es/m/CAMkU=1xTHkS6d0iptCWykHc1Xrh3LBic_gZDo3JzDYru815fLQ@mail.gmail.com --- diff --git a/src/backend/executor/execExpr.c b/src/backend/executor/execExpr.c index 4b44a4a4ea..885da18306 100644 --- a/src/backend/executor/execExpr.c +++ b/src/backend/executor/execExpr.c @@ -2861,7 +2861,6 @@ ExecBuildAggTrans(AggState *aggstate, AggStatePerPhase phase, for (transno = 0; transno < aggstate->numtrans; transno++) { AggStatePerTrans pertrans = &aggstate->pertrans[transno]; - int numInputs = pertrans->numInputs; int argno; int setno; FunctionCallInfo trans_fcinfo = &pertrans->transfn_fcinfo; @@ -3016,7 +3015,7 @@ ExecBuildAggTrans(AggState *aggstate, AggStatePerPhase phase, argno++; } } - Assert(numInputs == argno); + Assert(pertrans->numInputs == argno); /* * For a strict transfn, nothing happens when there's a NULL input; we