From dc95ee6606fec5ba003d4f2374b57f0715c2f8d1 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 18 Aug 2026 10:52:24 +0200 Subject: [PATCH 10/11] Fix some -Wcast-qual warnings [readline] The casting away of const is no longer needed. rl_readline_name has been const since readline-4.2 (2001), libedit since 2018 (https://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/readline/readline.h?sortby=date, rev 1.44) see also commit 8666cf65ea6 --- src/bin/psql/tab-complete.in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/psql/tab-complete.in.c b/src/bin/psql/tab-complete.in.c index 190fff7ea0e..809ed1c22d7 100644 --- a/src/bin/psql/tab-complete.in.c +++ b/src/bin/psql/tab-complete.in.c @@ -1522,7 +1522,7 @@ static char *dequote_file_name(char *fname, int quote_char); void initialize_readline(void) { - rl_readline_name = (char *) pset.progname; + rl_readline_name = pset.progname; rl_attempted_completion_function = psql_completion; #ifdef USE_FILENAME_QUOTING_FUNCTIONS -- 2.55.0