]> 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:38 +0000 (07:29 +0200)
commit385c5dfe24deb4fd500fe4007a73c344fa315125
treecd092362ae7c92c9dbcea55bbcb990ab86b82541
parent8856f1acc97be5cc1816d42389c4a6852bc2ec86
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