summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-04-26 22:33:49 +0200
committerBram Moolenaar <Bram@vim.org>2019-04-26 22:33:49 +0200
commit5431589d25e73892fcf7ad1eaca53f742c1c9303 (patch)
tree1207f8bf7bd859967c9c6503b1d053a8d9f30272
parentc8cc0ad477c1921afb11080fb96c764369cf04b8 (diff)
downloadvim-git-5431589d25e73892fcf7ad1eaca53f742c1c9303.tar.gz
patch 8.1.1209: clever compiler warns for buffer being too smallv8.1.1209
Problem: Clever compiler warns for buffer being too small. Solution: Make the buffer bigger (even though it's not really needed).
-rw-r--r--src/evalfunc.c4
-rw-r--r--src/syntax.c2
-rw-r--r--src/version.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index a4d6ebf64..228b71ad5 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -5460,7 +5460,7 @@ f_getmatches(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
for (i = 0; i < MAXPOSMATCH; ++i)
{
llpos_T *llpos;
- char buf[6];
+ char buf[30]; // use 30 to avoid compiler warning
list_T *l;
llpos = &cur->pos.pos[i];
@@ -11502,7 +11502,7 @@ f_setmatches(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
while (li != NULL)
{
int i = 0;
- char_u buf[5];
+ char buf[30]; // use 30 to avoid compiler warning
dictitem_T *di;
char_u *group;
int priority;
diff --git a/src/syntax.c b/src/syntax.c
index df351a31a..7545165a0 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -10014,7 +10014,7 @@ highlight_changed(void)
char_u *end;
int id;
#ifdef USER_HIGHLIGHT
- char_u userhl[10];
+ char_u userhl[30]; // use 30 to avoid compiler warning
# ifdef FEAT_STL_OPT
int id_S = -1;
int id_SNC = 0;
diff --git a/src/version.c b/src/version.c
index ccf68f8ec..d024265aa 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1209,
+/**/
1208,
/**/
1207,