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)
commit4e467261560f087e0c75452646695a4edbb09de7
treec8afe48e8d9c6ddb1c456a298833d09d3a2a5e98
parent1072e4c45dc3e4a9a62b34087414627b307e10f6
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: http://postgr.es/m/20220601163537.GA2331988@nathanxps13
contrib/amcheck/verify_nbtree.c
src/backend/access/brin/brin.c