]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Silence compiler warnings on clang 21
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 12 Sep 2025 05:27:48 +0000 (07:27 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 12 Sep 2025 05:29:15 +0000 (07:29 +0200)
commit14bb47567a3977cd838f62c4297c2cc4c878e800
treed38478d790edc2ab858169811cab42ef02f717fd
parent3c02c46521b01f1e60caff2d056f3da5ee98ce58
Silence compiler warnings on clang 21

Clang 21 shows some new compiler warnings, for example:

warning: variable 'dstsize' is uninitialized when passed as a const pointer argument here [-Wuninitialized-const-pointer]

The fix is to initialize the variables when they are defined.  This is
similar to, for example, the existing situation in gistKeyIsEQ().

Discussion: https://www.postgresql.org/message-id/flat/6604ad6e-5934-43ac-8590-15113d6ae4b1%40eisentraut.org
src/backend/access/common/toast_internals.c
src/backend/access/gist/gistutil.c