From: Nick Terrell Date: Tue, 29 Aug 2017 00:19:01 +0000 (-0700) Subject: [pool] Visual Studios disallows empty structs X-Git-Tag: fuzz-corpora2~41^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02033be08c581ec59d4ef26d46defc0687d15f81;p=thirdparty%2Fzstd.git [pool] Visual Studios disallows empty structs --- 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) {