From a5c29d37aab00e9e70e72c97f2be29030f6ee84c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 4 Mar 2015 22:00:36 -0500 Subject: [PATCH] Avoid unused-variable warning in non-assert builds. Oversight in my commit b9896198cfbc1b0cd0c631d2af72ffe34bd4c7e5. --- src/backend/utils/adt/selfuncs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backend/utils/adt/selfuncs.c b/src/backend/utils/adt/selfuncs.c index c74ac9707a..4dd3f9fbce 100644 --- a/src/backend/utils/adt/selfuncs.c +++ b/src/backend/utils/adt/selfuncs.c @@ -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; } -- 2.40.0