From 7d4d87ba89f464810e961c32af1007e26b5dde80 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 6 Jan 2023 18:59:08 +0000 Subject: [PATCH] patch 9.0.1153: build error with some compilers Problem: Build error with some compilers. Solution: Clear pointer the right way. --- src/version.c | 2 ++ src/vim9class.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.47.2