pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix some -Wcast-qual warnings 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix some -Wcast-qual warnings @ 2026-02-27 21:04 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 2+ messages in thread From: Peter Eisentraut @ 2026-02-27 21:04 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix some -Wcast-qual warnings This fixes some warnings from -Wcast-qual that are easy to fix, without using unconstify or the like. Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://www.postgresql.org/message-id/990c9117-b013-4026-aaf5-261fe2832c3d%40eisentraut.org Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/3f9886298052802258261e1bdcd3f1dd0e8399b9 Modified Files -------------- src/backend/access/gin/ginbulk.c | 2 +- src/backend/postmaster/launch_backend.c | 12 ++++++------ src/backend/utils/adt/xml.c | 5 +++-- src/backend/utils/error/elog.c | 7 +++++-- src/common/jsonapi.c | 6 +++--- src/fe_utils/astreamer_lz4.c | 12 ++++++------ src/include/access/gin_private.h | 2 +- src/include/port/pg_lfind.h | 4 ++-- src/include/postmaster/postmaster.h | 2 +- src/interfaces/ecpg/preproc/parser.c | 17 +++++++++++------ 10 files changed, 39 insertions(+), 30 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix some -Wcast-qual warnings @ 2026-08-25 08:25 Peter Eisentraut <peter@eisentraut.org> 0 siblings, 0 replies; 2+ messages in thread From: Peter Eisentraut @ 2026-08-25 08:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix some -Wcast-qual warnings Small rearrangements to avoid having to cast away qualifiers. In some cases, the whole cast was unnecessary. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://www.postgresql.org/message-id/flat/459217ca-3840-4452-8cd1-8f9b47e8d479%40eisentraut.org Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/e58994c30199258c7abfdfd65140a699faac0a1c Modified Files -------------- contrib/btree_gist/btree_bit.c | 4 ++-- contrib/btree_gist/btree_utils_var.c | 4 ++-- contrib/btree_gist/btree_utils_var.h | 2 +- contrib/postgres_fdw/connection.c | 11 ++++++---- contrib/xml2/xslt_proc.c | 15 +++++++------- src/backend/utils/adt/multirangetypes.c | 6 +++--- src/backend/utils/adt/rangetypes.c | 2 +- src/backend/utils/adt/varlena.c | 24 +++++++++++----------- src/include/storage/bufpage.h | 2 +- .../test_custom_stats/test_custom_var_stats.c | 2 +- 10 files changed, 38 insertions(+), 34 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-08-25 08:25 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-02-27 21:04 pgsql: Fix some -Wcast-qual warnings Peter Eisentraut <peter@eisentraut.org> 2026-08-25 08:25 pgsql: Fix some -Wcast-qual warnings 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