From 3ca7f0e18ee608e96a1ad4d37e9dcac53dbeda90 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 18 Aug 2026 10:52:24 +0200 Subject: [PATCH 01/11] Fix some -Wcast-qual warnings [fe_utils/print.c] fixup for commit c83a133f2bb --- src/fe_utils/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fe_utils/print.c b/src/fe_utils/print.c index 06039ca1499..b0dd9d54371 100644 --- a/src/fe_utils/print.c +++ b/src/fe_utils/print.c @@ -3269,7 +3269,7 @@ printTableAddHeader(printTableContent *content, const char *header, * are provided by ourselves, so they had better be ok. And if they were * not, running mbvalidate on them could overwrite gettext-owned memory. */ - if (!translate && !mb_is_valid((unsigned char *) header, content->opt->encoding)) + if (!translate && !mb_is_valid((const unsigned char *) header, content->opt->encoding)) { char *header2; @@ -3327,7 +3327,7 @@ printTableAddCell(printTableContent *content, const char *cell, * are provided by ourselves, so they had better be ok. And if they were * not, running mbvalidate on them could overwrite gettext-owned memory. */ - if (!translate && !mb_is_valid((unsigned char *) cell, content->opt->encoding)) + if (!translate && !mb_is_valid((const unsigned char *) cell, content->opt->encoding)) { char *cell2; -- 2.55.0