Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] termcap.c: fix pointer type mismatch for boolcodes
- X-seq: zsh-workers 53125
- From: liushuyu <liushuyu011@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Cc: liushuyu <liushuyu011@xxxxxxxxx>
- Subject: [PATCH] termcap.c: fix pointer type mismatch for boolcodes
- Date: Wed, 25 Sep 2024 10:15:24 -0600
- Archived-at: <https://zsh.org/workers/53125>
- List-id: <zsh-workers.zsh.org>
This fixes build failure on GCC 14 and newer (where mismatching pointer
types are errors by default now)
---
Src/Modules/termcap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c
index af4009a3a..78ab999ee 100644
--- a/Src/Modules/termcap.c
+++ b/Src/Modules/termcap.c
@@ -42,7 +42,7 @@
#ifdef HAVE_TGETENT
#ifndef HAVE_BOOLCODES
-static char *boolcodes[] = {
+NCURSES_CONST char *const boolcodes[] = {
"bw", "am", "ut", "cc", "xs", "YA", "YF", "YB", "xt", "xn", "eo",
"gn", "hc", "HC", "km", "YC", "hs", "hl", "in", "YG", "da", "db",
"mi", "ms", "nx", "xb", "NP", "ND", "NR", "os", "5i", "YD", "YE",
--
2.46.2
Messages sorted by:
Reverse Date,
Date,
Thread,
Author