To: vim_dev@googlegroups.com Subject: Patch 9.0.1284 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1284 Problem: Compiler warnings for uninitialized variables. (Tony Mechelynck) Solution: Add variable initializations. Files: src/option.c *** ../vim-9.0.1283/src/option.c 2023-02-05 16:02:30.980790251 +0000 --- src/option.c 2023-02-05 17:03:46.822169558 +0000 *************** *** 2096,2102 **** char_u key_name[2]; int nextchar; // next non-white char after option name int afterchar; // character just after option name - int cp_val; char *errmsg = NULL; int key; int len; --- 2096,2101 ---- *************** *** 2167,2172 **** --- 2166,2172 ---- else { flags = P_STRING; + varp = NULL; if (key < 0) { key_name[0] = KEY2TERMCAP0(key); *************** *** 2183,2192 **** if (validate_opt_idx(opt_idx, opt_flags, flags, &errmsg) == FAIL) goto skip; if (vim_strchr((char_u *)"?=:!&<", nextchar) != NULL) { arg += len; - cp_val = p_cp; if (nextchar == '&' && arg[1] == 'v' && arg[2] == 'i') { if (arg[3] == 'm') // "opt&vim": set to Vim default --- 2183,2192 ---- if (validate_opt_idx(opt_idx, opt_flags, flags, &errmsg) == FAIL) goto skip; + int cp_val = p_cp; if (vim_strchr((char_u *)"?=:!&<", nextchar) != NULL) { arg += len; if (nextchar == '&' && arg[1] == 'v' && arg[2] == 'i') { if (arg[3] == 'm') // "opt&vim": set to Vim default *** ../vim-9.0.1283/src/version.c 2023-02-05 16:02:30.980790251 +0000 --- src/version.c 2023-02-05 17:01:43.054261972 +0000 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1284, /**/ -- From "know your smileys": :-& Eating spaghetti /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///