To: vim_dev@googlegroups.com Subject: Patch 8.2.4004 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4004 Problem: Old compiler complains about struct init with variable. Solution: Set the struct member later. (John Marriott) Files: src/evalfunc.c *** ../vim-8.2.4003/src/evalfunc.c 2022-01-04 15:16:57.879864882 +0000 --- src/evalfunc.c 2022-01-04 20:03:47.210164162 +0000 *************** *** 524,532 **** expected = &t_number; if (expected != NULL) { ! type_T t_func_exp = {VAR_FUNC, -1, 0, TTFLAG_STATIC, ! expected, NULL}; return check_arg_type(&t_func_exp, type, context); } } --- 524,532 ---- expected = &t_number; if (expected != NULL) { ! type_T t_func_exp = {VAR_FUNC, -1, 0, TTFLAG_STATIC, NULL, NULL}; + t_func_exp.tt_member = expected; return check_arg_type(&t_func_exp, type, context); } } *** ../vim-8.2.4003/src/version.c 2022-01-04 19:57:50.934919980 +0000 --- src/version.c 2022-01-04 20:04:05.734125251 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4004, /**/ -- hundred-and-one symptoms of being an internet addict: 221. Your wife melts your keyboard in the oven. /// 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 ///