From c56ac2913a1f3adce674a2eb27257d0bca81317f Mon Sep 17 00:00:00 2001 From: Tom Lane <tgl@sss.pgh.pa.us> Date: Tue, 21 Feb 2017 17:58:24 -0500 Subject: [PATCH] Suppress unused-variable warning. Rearrange so we don't have an unused variable in disable-cassert case. Discussion: https://postgr.es/m/CAMkU=1x63f2QyFTeas83xJqD+Hm1PBuok1LrzYzS-OngDzYOVA@mail.gmail.com --- src/backend/optimizer/path/indxpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/optimizer/path/indxpath.c b/src/backend/optimizer/path/indxpath.c index 9c069983d91..d8e5b811268 100644 --- a/src/backend/optimizer/path/indxpath.c +++ b/src/backend/optimizer/path/indxpath.c @@ -1313,7 +1313,7 @@ generate_bitmap_or_paths(PlannerInfo *root, RelOptInfo *rel, List *orargs; Assert(!restriction_is_or_clause(rinfo)); - orargs = list_make1(orarg); + orargs = list_make1(rinfo); indlist = build_paths_for_OR(root, rel, orargs, -- GitLab