mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-05-19 11:11:31 +02:00
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.
This commit is contained in:
parent
ce033e2b9c
commit
98affe1115
2 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue