# HG changeset patch # User Bram Moolenaar # Date 1661507104 -7200 # Node ID 4291eb97e47963858c8e4b85de5deb9714c4fe76 # Parent 34ff4f601c420badb5247c7801a5adfd8a80eeef patch 9.0.0271: using INIT() in non-header files Commit: https://github.com/vim/vim/commit/9b7d2a959646560f5770329f4428c4739eed4656 Author: zeertzjq Date: Fri Aug 26 10:33:54 2022 +0100 patch 9.0.0271: using INIT() in non-header files Problem: Using INIT() in non-header files. Solution: Remove INIT(). (closes https://github.com/vim/vim/issues/10981) diff --git a/src/ex_getln.c b/src/ex_getln.c --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -59,7 +59,7 @@ static int empty_pattern_magic(char_u *p #ifdef FEAT_CMDWIN static int open_cmdwin(void); -static int cedit_key INIT(= -1); // key value of 'cedit' option +static int cedit_key = -1; // key value of 'cedit' option #endif diff --git a/src/gui_xim.c b/src/gui_xim.c --- a/src/gui_xim.c +++ b/src/gui_xim.c @@ -154,7 +154,7 @@ set_ref_in_im_funcs(int copyID UNUSED) #if defined(FEAT_XIM) || defined(PROTO) # if defined(FEAT_GUI_GTK) || defined(PROTO) -static int xim_has_preediting INIT(= FALSE); // IM current status +static int xim_has_preediting = FALSE; // IM current status /* * Set preedit_start_col to the current cursor position. diff --git a/src/os_unix.c b/src/os_unix.c --- a/src/os_unix.c +++ b/src/os_unix.c @@ -959,7 +959,7 @@ static volatile sig_atomic_t lc_signal; // TRUE when lc_jump_env is valid. // Volatile because it is used in signal handler deathtrap(). -static volatile sig_atomic_t lc_active INIT(= FALSE); +static volatile sig_atomic_t lc_active = FALSE; /* * A simplistic version of setjmp() that only allows one level of using. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -724,6 +724,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 271, +/**/ 270, /**/ 269,