Fix some -Wcast-qual warnings
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2026-02-27T20:57:33Z
Releases:
19 (unreleased)
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/gin/ginbulk.c | modified | +1 −1 |
| src/backend/postmaster/launch_backend.c | modified | +6 −6 |
| src/backend/utils/adt/xml.c | modified | +3 −2 |
| src/backend/utils/error/elog.c | modified | +5 −2 |
| src/common/jsonapi.c | modified | +3 −3 |
| src/fe_utils/astreamer_lz4.c | modified | +6 −6 |
| src/include/access/gin_private.h | modified | +1 −1 |
| src/include/port/pg_lfind.h | modified | +2 −2 |
| src/include/postmaster/postmaster.h | modified | +1 −1 |
| src/interfaces/ecpg/preproc/parser.c | modified | +11 −6 |
Discussion
- Don't cast away const where possible 12 messages · 2025-12-18 → 2026-02-24