From 0ff6aad393c4130818fb4f49137380f78d7cc882 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 29 Jan 2020 21:27:21 +0100 Subject: patch 8.2.0173: build fails with old compiler Problem: Build fails with old compiler. Solution: Do not use anonymous unions. (John Marriott) --- src/structs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/structs.h') diff --git a/src/structs.h b/src/structs.h index 74bc2ff6eb..762cd867c7 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1410,13 +1410,13 @@ struct listvar_S varnumber_T lv_start; varnumber_T lv_end; int lv_stride; - }; + } nonmat; struct { // used for materialized list listitem_T *lv_last; // last item, NULL if none listitem_T *lv_idx_item; // when not NULL item at index "lv_idx" int lv_idx; // cached index of an item - }; - }; + } mat; + } lv_u; list_T *lv_copylist; // copied list used by deepcopy() list_T *lv_used_next; // next list in used lists list list_T *lv_used_prev; // previous list in used lists list -- cgit v1.2.3