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 -- b...@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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20221220204819.17FA91C06ED%40moolenaar.net.

Raspunde prin e-mail lui