pgsql: Suppress uninitialized-variable warning.

2025-07-29 Thread Tom Lane
Suppress uninitialized-variable warning. In the wake of commit 80aa9848b, a few compilers think that postgresAcquireSampleRowsFunc's "reltuples" might be used uninitialized. The logic is visibly correct, both before and after that change; presumably what happened here is that the previous presenc

pgsql: Suppress uninitialized-variable warning from a61b1f748.

2022-12-27 Thread Tom Lane
Suppress uninitialized-variable warning from a61b1f748. Some compilers complain about sub_rteperminfos not being initialized, evidently because they don't detect that it is only used and set if isGeneralSelect is true. Make it follow the long-established pattern for its sibling variable sub_rtable

pgsql: Suppress uninitialized-variable warning in guc.c.

2021-12-12 Thread Tom Lane
Suppress uninitialized-variable warning in guc.c. Back-patch 26812bcaa into 9.5, to suppress one more warning in out-of-support branches. (Doesn't appear to be needed before 9.5.) Discussion: https://postgr.es/m/d0316012-ece7-7b7e-2d36-9c38cb77c...@enterprisedb.com Branch -- REL9_5_STABLE

pgsql: Suppress uninitialized-variable warning.

2021-04-08 Thread Tom Lane
Suppress uninitialized-variable warning. Several buildfarm critters that don't usually produce such warnings are complaining about e717a9a18. I think it's actually safe, but move initialization to silence the warning. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff

pgsql: Suppress uninitialized-variable warning.

2019-03-27 Thread Tom Lane
Suppress uninitialized-variable warning. Apparently Andres' compiler is smart enough to see that hpage must be initialized before use ... but mine isn't. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/a51cc7e9e60701d31032669011adcda8b4621d93 Modified Files ---

pgsql: Suppress uninitialized-variable warning in new SCRAM code.

2018-08-24 Thread Tom Lane
Suppress uninitialized-variable warning in new SCRAM code. While we generally don't sweat too much about "may be used uninitialized" warnings from older compilers, I noticed that there's a fair number of buildfarm animals that are producing such a warning *only* for this variable. So it seems wor

pgsql: Suppress uninitialized-variable warning in new SCRAM code.

2018-08-24 Thread Tom Lane
Suppress uninitialized-variable warning in new SCRAM code. While we generally don't sweat too much about "may be used uninitialized" warnings from older compilers, I noticed that there's a fair number of buildfarm animals that are producing such a warning *only* for this variable. So it seems wor