about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorJörg Sommer <joerg@jo-so.de>2024-01-01 19:10:18 +0100
committerOliver Kiddle <opk@zsh.org>2024-01-28 00:23:43 +0100
commit98affe1115dfdab932432c09160f46ca3d269fb7 (patch)
tree1ebf10edc1afb7a4818eb24df7f4da5751ee3ca8 /Src
parentce033e2b9cadf51b4d043b0737fd3acee9f5eef2 (diff)
downloadzsh-98affe1115dfdab932432c09160f46ca3d269fb7.tar.gz
zsh-98affe1115dfdab932432c09160f46ca3d269fb7.tar.xz
zsh-98affe1115dfdab932432c09160f46ca3d269fb7.zip
52441: zle_vi: Mark variables with const init as const
Because these variables are initialized with as constant string, they should
be marked as *const* to make the compiler running with `-Wwrite-strings`
more happy.
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_vi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_vi.c b/Src/Zle/zle_vi.c
index 24d9de6ea..6692df830 100644
--- a/Src/Zle/zle_vi.c
+++ b/Src/Zle/zle_vi.c
@@ -1014,7 +1014,7 @@ int
 visetbuffer(char **args)
 {
     ZLE_INT_T ch;
-    ZLE_CHAR_T *match = ZWS("_*+");
+    const ZLE_CHAR_T *match = ZWS("_*+");
     int registermod[] = { MOD_NULL, MOD_PRI, MOD_CLIP };
     ZLE_CHAR_T *found;