]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1731: Not using const qualifier for opchars v9.1.1731
authorDamien Lejay <damien@lejay.be>
Thu, 4 Sep 2025 19:58:50 +0000 (21:58 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 4 Sep 2025 19:58:50 +0000 (21:58 +0200)
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>
src/ops.c
src/version.c

index b4b59de226ec349461158be5169d43a1df7fc79b..bf5b306dc0e7e9906bf05c666c9503d95f90f569 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -30,7 +30,7 @@ static void   pbyte(pos_T lp, int c);
  * IMPORTANT: Index must correspond with defines in vim.h!!!
  * The third field holds OPF_ flags.
  */
-static char opchars[][3] =
+static const char opchars[][3] =
 {
     {NUL, NUL, 0},                     // OP_NOP
     {'d', NUL, OPF_CHANGE},            // OP_DELETE
index aa3897faa0eecfcab4fa8916508eacef49d869d2..c2381542b9add031f7984e4e631f52789e7992aa 100644 (file)
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1731,
 /**/
     1730,
 /**/