pgsql: Silence compiler warnings on clang 21 - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Silence compiler warnings on clang 21
Date
Msg-id E1uwwRb-000IHM-2O@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a399db8d5988902da3f7bf55b78fd3511020fc66

Modified Files
--------------
src/backend/access/common/toast_internals.c | 2 +-
src/backend/access/gist/gistutil.c          | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Richard Guo
Date:
Subject: pgsql: Fix misuse of Relids for storing attribute numbers
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Remove traces of support for Sun Studio compiler