]> granicus.if.org Git - postgresql/commitdiff
Suppress unused-variable warning.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Feb 2017 22:58:24 +0000 (17:58 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Feb 2017 22:58:24 +0000 (17:58 -0500)
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

index 9c069983d912b1679c7a4070a7668558a02b23a8..d8e5b811268be0c7390433200c17c0c443c64137 100644 (file)
@@ -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,