From: Bram Moolenaar Date: Fri, 6 Jan 2023 18:59:08 +0000 (+0000) Subject: patch 9.0.1153: build error with some compilers X-Git-Tag: v9.0.1153 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=7d4d87ba89f464810e961c32af1007e26b5dde80;p=thirdparty%2Fvim.git patch 9.0.1153: build error with some compilers Problem: Build error with some compilers. Solution: Clear pointer the right way. --- diff --git a/src/version.c b/src/version.c index 74af145cdb..02841186c9 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1153, /**/ 1152, /**/ diff --git a/src/vim9class.c b/src/vim9class.c index eba21ce6e9..fd0a1223bb 100644 --- a/src/vim9class.c +++ b/src/vim9class.c @@ -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; }