]> granicus.if.org Git - postgresql/commitdiff
Fix unused-variable warning.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Nov 2018 16:20:59 +0000 (11:20 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Nov 2018 16:20:59 +0000 (11:20 -0500)
Discussion: https://postgr.es/m/CAMkU=1xTHkS6d0iptCWykHc1Xrh3LBic_gZDo3JzDYru815fLQ@mail.gmail.com

src/backend/executor/execExpr.c

index 4b44a4a4ead6d4b457c8c2c8a21e251c4a238b6f..885da18306a40e50f10bc4d90c244542424b7b51 100644 (file)
@@ -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