diff options
author | Tom Lane | 2015-03-05 03:00:36 +0000 |
---|---|---|
committer | Tom Lane | 2015-03-05 03:00:36 +0000 |
commit | a5c29d37aab00e9e70e72c97f2be29030f6ee84c (patch) | |
tree | b7a192759f407051ab8fe0938030fa9b9d627974 /src/backend | |
parent | 7f3014dce56c7975113809f2ff5e92cf7c1563a3 (diff) |
Avoid unused-variable warning in non-assert builds.
Oversight in my commit b9896198cfbc1b0cd0c631d2af72ffe34bd4c7e5.
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/utils/adt/selfuncs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/utils/adt/selfuncs.c b/src/backend/utils/adt/selfuncs.c index c74ac9707a2..4dd3f9fbce1 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; } |