Patch 8.2.5068
Problem:    Gcc 12.1 warning when building tee.
Solution:   Change type to size_t. (John Marriott)
Files:      src/tee/tee.c


*** ../vim-8.2.5067/src/tee/tee.c       2022-06-06 22:16:06.158653538 +0100
--- src/tee/tee.c       2022-06-08 13:05:43.840851422 +0100
***************
*** 82,88 ****
  main(int argc, char *argv[])
  {
        int     append = 0;
!       int     numfiles;
        int     maxfiles;
        FILE    **filepointers;
        int     i;
--- 82,88 ----
  main(int argc, char *argv[])
  {
        int     append = 0;
!       size_t  numfiles;
        int     maxfiles;
        FILE    **filepointers;
        int     i;
***************
*** 121,127 ****
        filepointers = calloc(numfiles, sizeof(FILE *));
        if (filepointers == NULL)
        {
!               fprintf(stderr, "Error allocating memory for %d files\n", 
numfiles);
                exit(1);
        }
        for (i = 0; i < numfiles; i++)
--- 121,128 ----
        filepointers = calloc(numfiles, sizeof(FILE *));
        if (filepointers == NULL)
        {
!               fprintf(stderr, "Error allocating memory for %ld files\n",
!                                                                               
                                           (long)numfiles);
                exit(1);
        }
        for (i = 0; i < numfiles; i++)
*** ../vim-8.2.5067/src/version.c       2022-06-08 10:48:12.468987646 +0100
--- src/version.c       2022-06-08 13:09:30.676819767 +0100
***************
*** 736,737 ****
--- 736,739 ----
  {   /* Add new patch number below this line */
+ /**/
+     5068,
  /**/

-- 
ARTHUR: Go on, Bors, chop its head off.
BORS:   Right.  Silly little bleeder.  One rabbit stew coming up.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220608121525.604011C071E%40moolenaar.net.

Raspunde prin e-mail lui