]> granicus.if.org Git - postgresql/commitdiff
Fix compiler warning for non-assert builds.
authorKevin Grittner <kgrittn@postgresql.org>
Mon, 10 Nov 2014 15:42:46 +0000 (09:42 -0600)
committerKevin Grittner <kgrittn@postgresql.org>
Mon, 10 Nov 2014 15:42:46 +0000 (09:42 -0600)
Reported by Peter Geoghegan
David Rowley

src/backend/access/brin/brin_revmap.c

index 7f55ded1f1945a09618e5fa2321187d9102b92ff..272c74e6b6e10cc885a2d684c58503411e32bd44 100644 (file)
@@ -110,7 +110,7 @@ brinRevmapTerminate(BrinRevmap *revmap)
 void
 brinRevmapExtend(BrinRevmap *revmap, BlockNumber heapBlk)
 {
-       BlockNumber     mapBlk;
+       BlockNumber     mapBlk PG_USED_FOR_ASSERTS_ONLY;
 
        mapBlk = revmap_extend_and_get_blkno(revmap, heapBlk);