]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[pool] Visual Studios disallows empty structs
authorNick Terrell <terrelln@fb.com>
Tue, 29 Aug 2017 00:19:01 +0000 (17:19 -0700)
committerNick Terrell <terrelln@fb.com>
Tue, 29 Aug 2017 00:19:01 +0000 (17:19 -0700)
lib/common/pool.c

index ada9b1696c859b625624eec065c1fe52453bcf22..9567d112f26300743b6245caf607d309450a9a9f 100644 (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) {