mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Fix unused-variable warning.
Discussion: https://postgr.es/m/CAMkU=1xTHkS6d0iptCWykHc1Xrh3LBic_gZDo3JzDYru815fLQ@mail.gmail.com
This commit is contained in:
parent
793beab37e
commit
3e0b05a756
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user