From: zeertzjq Date: Fri, 26 Aug 2022 09:33:54 +0000 (+0100) Subject: patch 9.0.0271: using INIT() in non-header files X-Git-Tag: v9.0.0271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b7d2a959646560f5770329f4428c4739eed4656;p=thirdparty%2Fvim.git patch 9.0.0271: using INIT() in non-header files Problem: Using INIT() in non-header files. Solution: Remove INIT(). (closes #10981) --- diff --git a/src/ex_getln.c b/src/ex_getln.c index 7b84af6153..022c40516d 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -59,7 +59,7 @@ static int empty_pattern_magic(char_u *pat, size_t len, magic_T magic_val); #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 index 4d8706a100..d384cbc059 100644 --- 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 index 2f00614955..7aa3d1f0c7 100644 --- 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 index 255725f22a..59e36e4fa9 100644 --- a/src/version.c +++ b/src/version.c @@ -723,6 +723,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 271, /**/ 270, /**/