pgsql: Silence compiler warnings on clang 21

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Silence compiler warnings on clang 21
Дата
Msg-id E1uwwRb-000IHO-2R@gemulon.postgresql.org
обсуждение исходный текст
Список 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_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/385c5dfe24deb4fd500fe4007a73c344fa315125

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 по дате отправления: