Silence compiler warnings from some older compilers.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Jun 2022 21:21:45 +0000 (17:21 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 Jun 2022 21:21:45 +0000 (17:21 -0400)
commitdd1c8dd1015f4548d6c29de56e54eda317b39319
tree75683ff69f8de24b6b6d82efa72bd6baf333b68a
parenteb39610f82679e015dd990a3fbba1c62e399c32a
Silence compiler warnings from some older compilers.

Since a117cebd6, some older gcc versions issue "variable may be used
uninitialized in this function" complaints for brin_summarize_range.
Silence that using the same coding pattern as in bt_index_check_internal;
arguably, a117cebd6 had too narrow a view of which compilers might give
trouble.

Nathan Bossart and Tom Lane.  Back-patch as the previous commit was.

Discussion: https://postgr.es/m/20220601163537.GA2331988@nathanxps13
contrib/amcheck/verify_nbtree.c
src/backend/access/brin/brin.c