pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Silence compiler warnings on clang 21 4+ messages / 1 participants [nested] [flat]
* pgsql: Silence compiler warnings on clang 21 @ 2025-09-12 05:35 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 4+ messages in thread From: Peter Eisentraut @ 2025-09-12 05:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Silence compiler warnings on clang 21 @ 2025-09-12 05:35 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 4+ messages in thread From: Peter Eisentraut @ 2025-09-12 05:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/e92677e86333562b8dd4972083c8a1abf985d90d Modified Files -------------- src/backend/access/common/toast_internals.c | 2 +- src/backend/access/gist/gistutil.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Silence compiler warnings on clang 21 @ 2025-09-12 05:35 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 4+ messages in thread From: Peter Eisentraut @ 2025-09-12 05:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/14bb47567a3977cd838f62c4297c2cc4c878e800 Modified Files -------------- src/backend/access/common/toast_internals.c | 2 +- src/backend/access/gist/gistutil.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Silence compiler warnings on clang 21 @ 2025-09-12 05:35 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 4+ messages in thread From: Peter Eisentraut @ 2025-09-12 05:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2025-09-12 05:35 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2025-09-12 05:35 pgsql: Silence compiler warnings on clang 21 Peter Eisentraut <peter@eisentraut.org> 2025-09-12 05:35 pgsql: Silence compiler warnings on clang 21 Peter Eisentraut <peter@eisentraut.org> 2025-09-12 05:35 pgsql: Silence compiler warnings on clang 21 Peter Eisentraut <peter@eisentraut.org> 2025-09-12 05:35 pgsql: Silence compiler warnings on clang 21 Peter Eisentraut <peter@eisentraut.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox