From 02033be08c581ec59d4ef26d46defc0687d15f81 Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Mon, 28 Aug 2017 17:19:01 -0700 Subject: [PATCH] [pool] Visual Studios disallows empty structs --- lib/common/pool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/common/pool.c b/lib/common/pool.c index ada9b1696..9567d112f 100644 --- a/lib/common/pool.c +++ b/lib/common/pool.c @@ -219,7 +219,9 @@ void POOL_add(void* ctxVoid, POOL_function function, void *opaque) { /* No multi-threading support */ /* We don't need any data, but if it is empty malloc() might return NULL. */ -struct POOL_ctx_s {}; +struct POOL_ctx_s { + int dummy; +}; static POOL_ctx g_ctx; POOL_ctx* POOL_create(size_t numThreads, size_t queueSize) {