patch 9.1.1731: Not using const qualifier for opchars
Problem: Not using const qualifier Solution: Mark the opchars array const closes: #18196 Signed-off-by: Damien Lejay <damien@lejay.be> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
6d8307fc2f
commit
63a02ca39a
@ -30,7 +30,7 @@ static void pbyte(pos_T lp, int c);
|
|||||||
* IMPORTANT: Index must correspond with defines in vim.h!!!
|
* IMPORTANT: Index must correspond with defines in vim.h!!!
|
||||||
* The third field holds OPF_ flags.
|
* The third field holds OPF_ flags.
|
||||||
*/
|
*/
|
||||||
static char opchars[][3] =
|
static const char opchars[][3] =
|
||||||
{
|
{
|
||||||
{NUL, NUL, 0}, // OP_NOP
|
{NUL, NUL, 0}, // OP_NOP
|
||||||
{'d', NUL, OPF_CHANGE}, // OP_DELETE
|
{'d', NUL, OPF_CHANGE}, // OP_DELETE
|
||||||
|
|||||||
@ -724,6 +724,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1731,
|
||||||
/**/
|
/**/
|
||||||
1730,
|
1730,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user