]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Suppress new "may be used uninitialized" warning.
authorNoah Misch <noah@leadboat.com>
Tue, 17 Feb 2026 02:04:58 +0000 (18:04 -0800)
committerNoah Misch <noah@leadboat.com>
Tue, 17 Feb 2026 02:05:01 +0000 (18:05 -0800)
commitd04b34d685a2b002d5c1577cbd9f046e827535c7
treec0c0d0ef242b2a5d0526c98deb7bd37ce49713b3
parent4a0843c539018a1aad22a3ec8209b0ff1697b65d
Suppress new "may be used uninitialized" warning.

Various buildfarm members, having compilers like gcc 8.5 and 6.3, fail
to deduce that text_substring() variable "E" is initialized if
slice_size!=-1.  This suppression approach quiets gcc 8.5; I did not
reproduce the warning elsewhere.  Back-patch to v14, like commit
9f4fd119b2cbb9a41ec0c19a8d6ec9b59b92c125.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/1157953.1771266105@sss.pgh.pa.us
Backpatch-through: 14
src/backend/utils/adt/varlena.c