[pool] Visual Studios disallows empty structs

This commit is contained in:
Nick Terrell 2017-08-28 17:19:01 -07:00
parent 7c365eb02c
commit 02033be08c

View File

@ -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) {