diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-26 22:02:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-26 22:02:54 +0200 |
commit | ac77aec4daea8d73468fcf4690cb4ccab1d807ed (patch) | |
tree | 5ab80634ba81c489585b0399292ccde96c97e898 /src/globals.h | |
parent | eec2981bbee42411044800bc23731ebcc82b5b66 (diff) |
patch 7.4.2106v7.4.2106
Problem: Clang warns about missing field in initializer.
Solution: Define COMMA and use it. (Kazunobu Kuriyama)
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/globals.h b/src/globals.h index a3d6b4ee24..4e5f20d216 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 |