aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-06-01 17:21:45 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-06-01 17:21:45 -0400
commit4e467261560f087e0c75452646695a4edbb09de7 (patch)
treec8afe48e8d9c6ddb1c456a298833d09d3a2a5e98 /contrib
parent1072e4c45dc3e4a9a62b34087414627b307e10f6 (diff)
downloadpostgresql-4e467261560f087e0c75452646695a4edbb09de7.tar.gz
postgresql-4e467261560f087e0c75452646695a4edbb09de7.zip
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
Diffstat (limited to 'contrib')
-rw-r--r--contrib/amcheck/verify_nbtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/amcheck/verify_nbtree.c b/contrib/amcheck/verify_nbtree.c
index f23bc1473b0..7f8231a6815 100644
--- a/contrib/amcheck/verify_nbtree.c
+++ b/contrib/amcheck/verify_nbtree.c
@@ -283,7 +283,7 @@ bt_index_check_internal(Oid indrelid, bool parentcheck, bool heapallindexed,
else
{
heaprel = NULL;
- /* for "gcc -Og" https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78394 */
+ /* Set these just to suppress "uninitialized variable" warnings */
save_userid = InvalidOid;
save_sec_context = -1;
save_nestlevel = -1;