To: vim_dev@googlegroups.com Subject: Patch 9.0.1085 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1085 (after 9.0.1084) Problem: Compiler warns for uninitialized variable. Solution: Initialize the variable. Remove unused function. (John Marriott) Files: src/os_win32.c *** ../vim-9.0.1084/src/os_win32.c 2022-12-20 20:01:09.624090908 +0000 --- src/os_win32.c 2022-12-20 20:45:20.736572469 +0000 *************** *** 193,199 **** int length; } input_record_buffer_T; static input_record_buffer_T input_record_buffer; - static int peek_input_record_buffer(INPUT_RECORD* irEvents, int nMaxLength); static int read_input_record_buffer(INPUT_RECORD* irEvents, int nMaxLength); static int write_input_record_buffer(INPUT_RECORD* irEvents, int nLength); #endif --- 193,198 ---- *************** *** 1735,1741 **** int row; int col; int repeated_click; ! int_u mods; int move; if (!dict_has_key(args, "row") || !dict_has_key(args, "col")) --- 1734,1740 ---- int row; int col; int repeated_click; ! int_u mods = 0; int move; if (!dict_has_key(args, "row") || !dict_has_key(args, "col")) *************** *** 1879,1896 **** } return nCount; } - static int - peek_input_record_buffer(INPUT_RECORD* irEvents, int nMaxLength) - { - int nCount = 0; - input_record_buffer_node_T *temp = input_record_buffer.head; - while (nCount < nMaxLength && temp != NULL) - { - irEvents[nCount++] = temp->ir; - temp = temp->next; - } - return nCount; - } #endif // !FEAT_GUI_MSWIN || VIMDLL #ifdef FEAT_EVAL --- 1878,1883 ---- *** ../vim-9.0.1084/src/version.c 2022-12-20 20:01:09.628090906 +0000 --- src/version.c 2022-12-20 20:47:17.504385788 +0000 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1085, /**/ -- I'm sure that I asked CBuilder to do a "full" install. Looks like I got a "fool" install, instead. Charles E Campbell, Jr, PhD /// 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 ///