]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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)
commit37290f7f5a9acf9c88c5d65490b7ec24776ba332
tree68d479e90ceaea3eb17323fdd3e35ad728ccfdb4
parentb5265196e558d3a5d0ff235f228bcaefd8b91c59
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