Patch 9.0.1153 (after 9.0.1152)
Problem:    Build error with some compilers.
Solution:   Clear pointer the right way.
Files:      src/vim9class.c


*** ../vim-9.0.1152/src/vim9class.c     2023-01-06 18:42:16.430674097 +0000
--- src/vim9class.c     2023-01-06 18:56:38.599527917 +0000
***************
*** 606,612 ****
                goto cleanup;
            for (int i = 0; i < ga_impl.ga_len; ++i)
                cl->class_interfaces[i] = ((char_u **)ga_impl.ga_data)[i];
!           CLEAR_POINTER(ga_impl.ga_data);
            ga_impl.ga_len = 0;
        }
  
--- 606,612 ----
                goto cleanup;
            for (int i = 0; i < ga_impl.ga_len; ++i)
                cl->class_interfaces[i] = ((char_u **)ga_impl.ga_data)[i];
!           VIM_CLEAR(ga_impl.ga_data);
            ga_impl.ga_len = 0;
        }
  
*** ../vim-9.0.1152/src/version.c       2023-01-06 18:42:16.434674109 +0000
--- src/version.c       2023-01-06 18:58:11.595494016 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1153,
  /**/

-- 
CART DRIVER: Bring out your dead!
LARGE MAN:   Here's one!
CART DRIVER: Ninepence.
BODY:        I'm not dead!
                 "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/20230106185939.BDD071C7B3E%40moolenaar.net.

Raspunde prin e-mail lui