]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1153: build error with some compilers v9.0.1153
authorBram Moolenaar <Bram@vim.org>
Fri, 6 Jan 2023 18:59:08 +0000 (18:59 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 6 Jan 2023 18:59:08 +0000 (18:59 +0000)
Problem:    Build error with some compilers.
Solution:   Clear pointer the right way.

src/version.c
src/vim9class.c

index 74af145cdbc60a9c9205e8e1185fef05af1c2ce3..02841186c91b30fbe5303f13c14fabc2c7993fd5 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1153,
 /**/
     1152,
 /**/
index eba21ce6e9fcd0515183348f6d5447b13f026145..fd0a1223bba5bdb5698da3159a9937f709da751a 100644 (file)
@@ -606,7 +606,7 @@ early_ret:
                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);
+           VIM_CLEAR(ga_impl.ga_data);
            ga_impl.ga_len = 0;
        }