From 4cdc4f0564086d2fb9c7f7b644d170e54866a406 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 21 Jan 2019 17:11:05 +0100 Subject: [PATCH] fix compiler errors about non-trivial designated initializers with GCC 7 --- common/include/villas/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/include/villas/list.h b/common/include/villas/list.h index 475b93c65..98647d53c 100644 --- a/common/include/villas/list.h +++ b/common/include/villas/list.h @@ -62,11 +62,11 @@ typedef int (*cmp_cb_t)(const void *, const void *); /* The list data structure. */ struct vlist { + enum state state; /**< The state of this list. */ void **array; /**< Array of pointers to list elements */ size_t capacity; /**< Size of list::array in elements */ size_t length; /**< Number of elements of list::array which are in use */ pthread_mutex_t lock; /**< A mutex to allow thread-safe accesses */ - enum state state; /**< The state of this list. */ }; /** Initialize a list.