summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-26 22:02:54 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-26 22:02:54 +0200
commitac77aec4daea8d73468fcf4690cb4ccab1d807ed (patch)
tree5ab80634ba81c489585b0399292ccde96c97e898
parenteec2981bbee42411044800bc23731ebcc82b5b66 (diff)
downloadvim-git-ac77aec4daea8d73468fcf4690cb4ccab1d807ed.tar.gz
patch 7.4.2106v7.4.2106
Problem: Clang warns about missing field in initializer. Solution: Define COMMA and use it. (Kazunobu Kuriyama)
-rw-r--r--src/ex_cmds.c2
-rw-r--r--src/globals.h9
-rw-r--r--src/version.c2
-rw-r--r--src/vim.h1
4 files changed, 8 insertions, 6 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 7d8196cdc..2afa5e733 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -4008,6 +4008,7 @@ do_ecmd(
}
vim_free(new_name);
au_new_curbuf.br_buf = NULL;
+ au_new_curbuf.br_buf_free_count = 0;
#endif
}
@@ -4389,6 +4390,7 @@ delbuf_msg(char_u *name)
name == NULL ? (char_u *)"" : name);
vim_free(name);
au_new_curbuf.br_buf = NULL;
+ au_new_curbuf.br_buf_free_count = 0;
}
#endif
diff --git a/src/globals.h b/src/globals.h
index a3d6b4ee2..4e5f20d21 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -384,7 +384,7 @@ EXTERN int keep_filetype INIT(= FALSE); /* value for did_filetype when
/* When deleting the current buffer, another one must be loaded. If we know
* which one is preferred, au_new_curbuf is set to it */
-EXTERN bufref_T au_new_curbuf INIT(= {NULL});
+EXTERN bufref_T au_new_curbuf INIT(= {NULL COMMA 0});
/* When deleting a buffer/window and autocmd_busy is TRUE, do not free the
* buffer/window. but link it in the list starting with
@@ -1355,11 +1355,8 @@ EXTERN int term_is_xterm INIT(= FALSE); /* xterm-like 'term' */
#ifdef BACKSLASH_IN_FILENAME
EXTERN char psepc INIT(= '\\'); /* normal path separator character */
EXTERN char psepcN INIT(= '/'); /* abnormal path separator character */
-EXTERN char pseps[2] /* normal path separator string */
-# ifdef DO_INIT
- = {'\\', 0}
-# endif
- ;
+/* normal path separator string */
+EXTERN char pseps[2] = INIT(= {'\\' COMMA 0});
#endif
#ifdef FEAT_VIRTUALEDIT
diff --git a/src/version.c b/src/version.c
index 79616c6ae..cdcb426fa 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2106,
+/**/
2105,
/**/
2104,
diff --git a/src/vim.h b/src/vim.h
index e2d4cc48f..498078a4d 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1765,6 +1765,7 @@ int vim_memcmp(void *, void *, size_t);
# ifndef INIT
# define INIT(x) x
# define DO_INIT
+# define COMMA ,
# endif
#endif