]> granicus.if.org Git - postgresql/commitdiff
Avoid unused-variable warning in non-assert builds.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 5 Mar 2015 03:00:36 +0000 (22:00 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 5 Mar 2015 03:00:36 +0000 (22:00 -0500)
Oversight in my commit b9896198cfbc1b0cd0c631d2af72ffe34bd4c7e5.

src/backend/utils/adt/selfuncs.c

index c74ac9707a259be539e289e1dd78146a73c6bc9d..4dd3f9fbce1679a38a4a15288cfe7a7e97ff7443 100644 (file)
@@ -6037,10 +6037,9 @@ deconstruct_indexquals(IndexPath *path)
                }
                else if (IsA(clause, NullTest))
                {
-                       NullTest   *nt = (NullTest *) clause;
-
                        qinfo->clause_op = InvalidOid;
-                       Assert(match_index_to_operand((Node *) nt->arg, indexcol, index));
+                       Assert(match_index_to_operand((Node *) ((NullTest *) clause)->arg,
+                                                                                 indexcol, index));
                        qinfo->varonleft = true;
                        qinfo->other_operand = NULL;
                }