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.
master
Jörg Sommer 5 months ago committed by Oliver Kiddle
parent ce033e2b9c
commit 98affe1115

@ -1,5 +1,7 @@
2024-01-28 Oliver Kiddle <opk@zsh.org>
* Jörg Sommer: 52441: Src/Zle/zle_vi.c: Mark variables as const
* Jörg Sommer: 52440: Src/Zle/textobjects.c: Mark variables as const
2024-01-26 Oliver Kiddle <opk@zsh.org>

@ -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;

Loading…
Cancel
Save